summaryrefslogtreecommitdiffstats
path: root/lib/redmine/themes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine/themes.rb')
-rw-r--r--lib/redmine/themes.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/redmine/themes.rb b/lib/redmine/themes.rb
index 71d237e67..51b974fd7 100644
--- a/lib/redmine/themes.rb
+++ b/lib/redmine/themes.rb
@@ -118,6 +118,14 @@ module ApplicationHelper
stylesheet_path source
end
+ def stylesheet_link_tag(source, *args)
+ if current_theme && current_theme.stylesheets.include?(source)
+ super current_theme.stylesheet_path(source), *args
+ else
+ super
+ end
+ end
+
# Returns the header tags for the current theme
def heads_for_theme
if current_theme && current_theme.javascripts.include?('theme')