diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-04-30 12:44:19 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-04-30 12:44:19 +0000 |
commit | f65c47e3a7e6f2d19494236f8cb2cbc20f6dbd93 (patch) | |
tree | 3650efb2e18791283c268986c9431b1a252e20d6 | |
parent | da7c89bfd0031ea0515168b8549b34c02d1e1570 (diff) | |
download | redmine-f65c47e3a7e6f2d19494236f8cb2cbc20f6dbd93.tar.gz redmine-f65c47e3a7e6f2d19494236f8cb2cbc20f6dbd93.zip |
Fixes theme discovery under JRuby on Rails war structure (#632, #5404).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3710 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | lib/redmine/themes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/themes.rb b/lib/redmine/themes.rb index d0c90e3a9..57cdecb10 100644 --- a/lib/redmine/themes.rb +++ b/lib/redmine/themes.rb @@ -54,7 +54,7 @@ module Redmine private def self.scan_themes - dirs = Dir.glob("#{RAILS_ROOT}/public/themes/*").select do |f| + dirs = Dir.glob("#{Rails.public_path}/themes/*").select do |f| # A theme should at least override application.css File.directory?(f) && File.exist?("#{f}/stylesheets/application.css") end |