Permalink
Browse files

MDL-25543 fixed borked preupgrade script support

credit goes to Chris B Stones
  • Loading branch information...
1 parent 2168425 commit 8d33799d46715ceb578f051fb0c24f757e7e0601 @skodak skodak committed Dec 8, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/upgradelib.php
View
@@ -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);

0 comments on commit 8d33799

Please sign in to comment.