Skip to content

Commit

Permalink
MDL-25543 fixed borked preupgrade script support
Browse files Browse the repository at this point in the history
credit goes to Chris B Stones
  • Loading branch information
skodak committed Dec 8, 2010
1 parent 2168425 commit 8d33799
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/upgradelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1296,8 +1296,8 @@ function upgrade_core($version, $verbose) {
print_upgrade_part_start('moodle', false, $verbose);

// one time special local migration pre 2.0 upgrade script
if ($version < 2007101600) {
$pre20upgradefile = "$CFG->dirrot/local/upgrade_pre20.php";
if ($CFG->version < 2007101600) {
$pre20upgradefile = "$CFG->dirroot/local/upgrade_pre20.php";
if (file_exists($pre20upgradefile)) {
set_time_limit(0);
require($pre20upgradefile);
Expand Down

0 comments on commit 8d33799

Please sign in to comment.