From: skodak Date: Sun, 31 May 2009 17:38:18 +0000 (+0000) Subject: MDL-17458 moving lib/db/upgradelib.php to upgrade.php in order to maḱe it the the... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4f12838e3e523ae9be7f8eed6a2b16c22b13c2a7;p=moodle.git MDL-17458 moving lib/db/upgradelib.php to upgrade.php in order to maḱe it the the same for all plugins --- diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index b4788b4ddf..775895cb4c 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -22,6 +22,8 @@ function xmldb_main_upgrade($oldversion) { global $CFG, $THEME, $USER, $DB; + require_once($CFG->libdir.'/db/upgradelib.php'); // Core Upgrade-related functions + $result = true; $dbman = $DB->get_manager(); // loads ddl manager and xmldb classes diff --git a/lib/upgradelib.php b/lib/upgradelib.php index 518a86a22f..b0be5f44b1 100644 --- a/lib/upgradelib.php +++ b/lib/upgradelib.php @@ -1060,7 +1060,6 @@ function upgrade_core($version, $verbose) { global $CFG; require_once($CFG->libdir.'/db/upgrade.php'); // Defines upgrades - require_once($CFG->libdir.'/db/upgradelib.php'); // Core Upgrade-related functions try { // Upgrade current language pack if we can