@@ -30,6 +30,8 module Redmine | |||||
30 |
|
30 | |||
31 | # Return theme for given id, or nil if it's not found |
|
31 | # Return theme for given id, or nil if it's not found | |
32 | def self.theme(id, options={}) |
|
32 | def self.theme(id, options={}) | |
|
33 | return nil if id.blank? | |||
|
34 | ||||
33 | found = themes.find {|t| t.id == id} |
|
35 | found = themes.find {|t| t.id == id} | |
34 | if found.nil? && options[:rescan] != false |
|
36 | if found.nil? && options[:rescan] != false | |
35 | rescan |
|
37 | rescan |
General Comments 0
You need to be logged in to leave comments.
Login now