Commit c8dc7fff authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Avoid theme rescan when no theme is selected.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4559 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 523febf9
......@@ -30,6 +30,8 @@ module Redmine
# Return theme for given id, or nil if it's not found
def self.theme(id, options={})
return nil if id.blank?
found = themes.find {|t| t.id == id}
if found.nil? && options[:rescan] != false
rescan
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment