MDL-32746 libraries: Upgrade redirect for major version
authorFrederic Massart <fred@moodle.com>
Wed, 24 Jul 2013 01:20:38 +0000 (09:20 +0800)
committerDamyon Wiese <damyon@moodle.com>
Wed, 24 Jul 2013 01:30:15 +0000 (09:30 +0800)
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.

lib/setuplib.php
version.php

index 360eccb..e08d3c4 100644 (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 {
index 1310446..d998aae 100644 (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