summaryrefslogtreecommitdiffstats
path: root/lib/redmine/themes.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-01-07 20:14:50 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-01-07 20:14:50 +0000
commitb2b56adbfa6668f99de623651ca671d6021cbcf2 (patch)
tree74ebb67ad5998b945a7395e97ae7d1ca9b332390 /lib/redmine/themes.rb
parenta80dbc49b1670877aca09b11101d4a5b40ea58c2 (diff)
downloadredmine-b2b56adbfa6668f99de623651ca671d6021cbcf2.tar.gz
redmine-b2b56adbfa6668f99de623651ca671d6021cbcf2.zip
Fixed: Themes are not applied with Rails 2.0
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1047 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/themes.rb')
-rw-r--r--lib/redmine/themes.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/redmine/themes.rb b/lib/redmine/themes.rb
index a7cf940b8..d0c90e3a9 100644
--- a/lib/redmine/themes.rb
+++ b/lib/redmine/themes.rb
@@ -69,4 +69,8 @@ module ApplicationHelper
super((@current_theme && @current_theme.stylesheets.include?(source)) ?
"/themes/#{@current_theme.dir}/stylesheets/#{source}" : source)
end
+
+ def path_to_stylesheet(source)
+ stylesheet_path source
+ end
end