]> git.mjollnir.org Git - moodle.git/commitdiff
At installation time we *always* are going to show release notes
authorstronk7 <stronk7>
Mon, 27 Mar 2006 12:46:27 +0000 (12:46 +0000)
committerstronk7 <stronk7>
Mon, 27 Mar 2006 12:46:27 +0000 (12:46 +0000)
from en_utf8. It's the only lang pack that includes such info
with the upgrade, independently of everything else (unicodedb...).

admin/index.php

index 10df4fce8ea0d909559c07e5bb82819670c638e7..ed36398247144957dfabe61e64b4d7384f917e7d 100644 (file)
         if (!set_config("release", $release)) {
             notify("ERROR: Could not update release version in database!!");
         }
-        if (!empty($CFG->unicodedb)) {
-            $defaultlang = 'en_utf8';
-        } else {
-            $defaultlang = 'en';
-        }
         print_continue("index.php");
         print_simple_box_start("CENTER");
-        if (file_exists("$CFG->dataroot/lang/$defaultlang/docs/release.html")) {
-            include("$CFG->dataroot/lang/$defaultlang/docs/release.html");
-        } else if (file_exists("$CFG->dirroot/lang/$defaultlang/docs/release.html")) {
-            include("$CFG->dirroot/lang/$defaultlang/docs/release.html");
+        if (file_exists("$CFG->dirroot/lang/en_utf8/docs/release.html")) {
+            include("$CFG->dirroot/lang/en_utf8/docs/release.html");
         }
         print_simple_box_end();
         print_continue("index.php");