]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15094 lib/db/upgrade.php is required file
authorskodak <skodak>
Sun, 15 Jun 2008 12:17:39 +0000 (12:17 +0000)
committerskodak <skodak>
Sun, 15 Jun 2008 12:17:39 +0000 (12:17 +0000)
admin/index.php

index 8736dfbcd6c3cec73005401b2f311af3091024be..d13fc11c9f9195cf66dd7f1a1f01886d83a54f1b 100644 (file)
 
 /// Check version of Moodle code on disk compared with database
 /// and upgrade if possible.
-
-    if (file_exists("$CFG->dirroot/lib/db/upgrade.php")) {
-        include_once("$CFG->dirroot/lib/db/upgrade.php");  # defines new upgrades
-    }
+    require_once("$CFG->dirroot/lib/db/upgrade.php");  # defines new upgrades
 
     $stradministration = get_string("administration");