Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
41b1f960
Commit
41b1f960
authored
Nov 06, 2014
by
Robert Lyon
Committed by
Gerrit Code Review
Nov 06, 2014
Browse files
Merge "Check whether $CFG->cacheversion exists before initializing it"
parents
d42bbbfc
e469a849
Changes
1
Show whitespace changes
Inline
Side-by-side
htdocs/lib/db/upgrade.php
View file @
41b1f960
...
...
@@ -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
// minor version for that purpose.)
// Set this to a random starting number to make minor version slightly harder to detect
if
(
!
get_config
(
'cacheversion'
))
{
set_config
(
'cacheversion'
,
rand
(
1000
,
9999
));
}
}
return
$status
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment