Skip to content

Commit

Permalink
Redmine 5 compatibility
Browse files Browse the repository at this point in the history
Redmine 5 uses Zeitwerk, which can't find the require if it's not
relative or uses a wrong path.

Fixes: paginagmbh#88
  • Loading branch information
evgeni committed Aug 29, 2023
1 parent dd5f80b commit 9c8b41f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'redmine'

require_dependency 'patches/attachments_patch'
require_dependency 'hooks/view_layouts_base_html_head_hook'
require_relative 'lib/redmine_lightbox2/attachments_patch'
require_relative 'lib/redmine_lightbox2/hooks/view_layouts_base_html_head_hook'

Redmine::Plugin.register :redmine_lightbox2 do
name 'Redmine Lightbox 2'
Expand Down
File renamed without changes.

0 comments on commit 9c8b41f

Please sign in to comment.