diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2022-03-24 16:47:54 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2022-03-24 16:47:54 +0000 |
commit | 40ffbff49d82d959927660574c1127e0b982b88e (patch) | |
tree | c6bf179bedce9bcc15ff5d2df766e7460c240136 /lib | |
parent | 750c5e89fb09942ff7fb5f9ab75e695a2f2b8834 (diff) | |
download | redmine-40ffbff49d82d959927660574c1127e0b982b88e.tar.gz redmine-40ffbff49d82d959927660574c1127e0b982b88e.zip |
Fix Redmine::Plugin.assets_directory is not working after r21283 (#36835).
Patch by Go MAEDA.
git-svn-id: https://svn.redmine.org/redmine/trunk@21498 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/plugin.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/plugin.rb b/lib/redmine/plugin.rb index cdc6defb3..fb42a8fa9 100644 --- a/lib/redmine/plugin.rb +++ b/lib/redmine/plugin.rb @@ -104,7 +104,7 @@ module Redmine raise PluginNotFound, "Plugin not found. The directory for plugin #{p.id} should be #{p.directory}." end - p.path = PluginLoader.directories{ |d| d.dir == p.directory } + p.path = PluginLoader.directories.find {|d| d.to_s == p.directory} # Adds plugin locales if any # YAML translation files should be found under <plugin>/config/locales/ @@ -183,7 +183,7 @@ module Redmine # Returns the absolute path to the plugin assets directory def assets_directory - path.assedts_dir + path.assets_dir end def <=>(plugin) |