MDL-32746 libraries: Upgrade redirect for major version

Due to the newly introduced event user_loggedin, the upgrade
could not be reached as the event class was not found during login.
To remedy this, we need to force the upgrade before login.
This commit is contained in:
Frederic Massart 2013-07-24 09:20:38 +08:00 committed by Damyon Wiese
parent c59a65b273
commit a60bc9a35b
2 changed files with 2 additions and 2 deletions

View file

@ -1165,7 +1165,7 @@ function disable_output_buffering() {
*/
function redirect_if_major_upgrade_required() {
global $CFG;
$lastmajordbchanges = 2013071600.00;
$lastmajordbchanges = 2013072400.00;
if (empty($CFG->version) or (float)$CFG->version < $lastmajordbchanges or
during_initial_install() or !empty($CFG->adminsetuppending)) {
try {

View file

@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2013072300.00; // YYYYMMDD = weekly release date of this DEV branch
$version = 2013072400.00; // YYYYMMDD = weekly release date of this DEV branch
// RR = release increments - 00 in DEV branches
// .XX = incremental changes