Restores support for :plugin support to stylesheet_link_tag and javascript_include_tag helpers.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9558 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-04-28 09:10:46 +00:00
parent f12942ff40
commit 03335d014c
5 changed files with 57 additions and 22 deletions
-20
View File
@@ -106,26 +106,6 @@ module ApplicationHelper
@current_theme
end
def stylesheet_path(source)
if current_theme && current_theme.stylesheets.include?(source)
super current_theme.stylesheet_path(source)
else
super
end
end
def path_to_stylesheet(source)
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')