Skip to content

Commit

Permalink
MDL-32746 libraries: Upgrade redirect for major version
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Frederic Massart authored and Damyon Wiese committed Jul 24, 2013
1 parent c59a65b commit a60bc9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/setuplib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a60bc9a

Please sign in to comment.