MDL-17458 moving lib/db/upgradelib.php to upgrade.php in order to maḱe it the the same for all plugins

This commit is contained in:
skodak 2009-05-31 17:38:18 +00:00
parent 6f6b8f3f0f
commit 4f12838e3e
2 changed files with 2 additions and 1 deletions

View file

@ -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