MDL-38756 JavaScript: Handle missing jsrev during installation

During installation, jsrev is unset so unavailable for the cache checks.
The installation sets the initial jsrev value and this is updated
periodically, unless it is set to -1 for JS developer.

During installation, we shouldn't really use any caches so if jsrev is
unset, then we should act as though it is set to developer.
This commit is contained in:
Andrew Robert Nicols
2013-03-27 13:13:01 +00:00
parent 373a8e052c
commit 2c0b7d164c
+1 -1
View File
@@ -1356,7 +1356,7 @@ class YUI_config {
}
$cache = cache::make('core', 'yuimodules');
if ($CFG->jsrev == -1) {
if (!isset($CFG->jsrev) || $CFG->jsrev == -1) {
$metadata = array();
$cache->delete('metadata');
} else {