themes_helper.patch

Ondřej Ezr, 2015-08-11 01:58

Download (495 Bytes)

View differences:

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)