mirror of
https://github.com/moodle/moodle.git
synced 2025-04-24 09:55:33 +02:00
At installation time we *always* are going to show release notes
from en_utf8. It's the only lang pack that includes such info with the upgrade, independently of everything else (unicodedb...).
This commit is contained in:
parent
de12ca6a42
commit
039d4d5c2b
@ -204,17 +204,10 @@
|
||||
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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user