Description:
fixed error in config index
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r316:fdc96046b715 - - 2 files changed: 5 inserted, 5 deleted
@@ -18,6 +18,10 | |||
|
18 | 18 | Configuration.config_cache = nil |
|
19 | 19 | Configuration.task_grading_info_cache = nil |
|
20 | 20 | |
|
21 | + def self.config_cached? | |
|
22 | + (defined? CONFIGURATION_CACHE_ENABLED) and (CONFIGURATION_CACHE_ENABLED) | |
|
23 | + end | |
|
24 | + | |
|
21 | 25 | def self.get(key) |
|
22 | 26 | if Configuration.config_cached? |
|
23 | 27 | if Configuration.config_cache == nil |
@@ -132,10 +136,6 | |||
|
132 | 136 | |
|
133 | 137 | protected |
|
134 | 138 | |
|
135 | - def self.config_cached? | |
|
136 | - (defined? CONFIGURATION_CACHE_ENABLED) and (CONFIGURATION_CACHE_ENABLED) | |
|
137 | - end | |
|
138 | - | |
|
139 | 139 | def self.convert_type(val,type) |
|
140 | 140 | case type |
|
141 | 141 | when 'string' |
You need to be logged in to leave comments.
Login now