Commit 41b1f960 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Check whether $CFG->cacheversion exists before initializing it"

parents d42bbbfc e469a849
...@@ -3754,7 +3754,9 @@ function xmldb_core_upgrade($oldversion=0) { ...@@ -3754,7 +3754,9 @@ function xmldb_core_upgrade($oldversion=0) {
// to tell cacheing software when they've been updated. (Without having to use the Mahara // to tell cacheing software when they've been updated. (Without having to use the Mahara
// minor version for that purpose.) // minor version for that purpose.)
// Set this to a random starting number to make minor version slightly harder to detect // Set this to a random starting number to make minor version slightly harder to detect
set_config('cacheversion', rand(1000, 9999)); if (!get_config('cacheversion')) {
set_config('cacheversion', rand(1000, 9999));
}
} }
return $status; return $status;
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment