Patch #20507 » themes_helper.patch
lib/redmine/themes.rb | ||
---|---|---|
126 | 126 |
end |
127 | 127 |
end |
128 | 128 | |
129 |
module ApplicationHelper
|
|
129 |
module ThemesHelper
|
|
130 | 130 |
def current_theme |
131 | 131 |
unless instance_variable_defined?(:@current_theme) |
132 | 132 |
@current_theme = Redmine::Themes.theme(Setting.ui_theme) |
... | ... | |
141 | 141 |
end |
142 | 142 |
end |
143 | 143 |
end |
144 |
ActionView::Base.send(:include, ThemesHelper) |