##// END OF EJS Templates
Avoid theme rescan when no theme is selected....
Jean-Philippe Lang -
r4445:c8dc7fff08b9
parent child
Show More
@@ -30,6 +30,8 module Redmine
30 30
31 31 # Return theme for given id, or nil if it's not found
32 32 def self.theme(id, options={})
33 return nil if id.blank?
34
33 35 found = themes.find {|t| t.id == id}
34 36 if found.nil? && options[:rescan] != false
35 37 rescan
General Comments 0
You need to be logged in to leave comments. Login now