mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-20 07:21:12 +00:00
git-svn-id: http://svn.redmine.org/redmine/trunk@14520 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
1a630c5581
commit
a19f6fb500
@ -125,11 +125,11 @@ module Redmine
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
def controller
|
||||
nil
|
||||
end
|
||||
|
||||
|
||||
def config
|
||||
ActionController::Base.config
|
||||
end
|
||||
@ -171,5 +171,5 @@ module Redmine
|
||||
end
|
||||
end
|
||||
|
||||
ActionView::Base.send(:include, Redmine::Hook::Helper)
|
||||
ApplicationHelper.send(:include, Redmine::Hook::Helper)
|
||||
ActionController::Base.send(:include, Redmine::Hook::Helper)
|
||||
|
||||
@ -126,7 +126,7 @@ module Redmine
|
||||
end
|
||||
end
|
||||
|
||||
module ThemesHelper
|
||||
module ApplicationHelper
|
||||
def current_theme
|
||||
unless instance_variable_defined?(:@current_theme)
|
||||
@current_theme = Redmine::Themes.theme(Setting.ui_theme)
|
||||
@ -141,4 +141,3 @@ module ThemesHelper
|
||||
end
|
||||
end
|
||||
end
|
||||
ActionView::Base.send(:include, ThemesHelper)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user