mirror of
https://github.com/redmine/redmine.git
synced 2026-01-05 15:20:50 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user