mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
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:
parent
6f6b8f3f0f
commit
4f12838e3e
2 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,8 @@
|
||||||
function xmldb_main_upgrade($oldversion) {
|
function xmldb_main_upgrade($oldversion) {
|
||||||
global $CFG, $THEME, $USER, $DB;
|
global $CFG, $THEME, $USER, $DB;
|
||||||
|
|
||||||
|
require_once($CFG->libdir.'/db/upgradelib.php'); // Core Upgrade-related functions
|
||||||
|
|
||||||
$result = true;
|
$result = true;
|
||||||
|
|
||||||
$dbman = $DB->get_manager(); // loads ddl manager and xmldb classes
|
$dbman = $DB->get_manager(); // loads ddl manager and xmldb classes
|
||||||
|
|
|
@ -1060,7 +1060,6 @@ function upgrade_core($version, $verbose) {
|
||||||
global $CFG;
|
global $CFG;
|
||||||
|
|
||||||
require_once($CFG->libdir.'/db/upgrade.php'); // Defines upgrades
|
require_once($CFG->libdir.'/db/upgrade.php'); // Defines upgrades
|
||||||
require_once($CFG->libdir.'/db/upgradelib.php'); // Core Upgrade-related functions
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Upgrade current language pack if we can
|
// Upgrade current language pack if we can
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue