MDL-17565 automatic download of parent lang + parent lang cleanup

This commit is contained in:
skodak
2009-02-07 18:55:21 +00:00
parent 9ace50944f
commit cc8727451f
2 changed files with 23 additions and 4 deletions
+7
View File
@@ -381,6 +381,13 @@ if ($config->stage == INSTALL_DOWNLOADLANG) {
} else {
$downloaderror = get_string($cd->get_error(), 'error');
}
} else {
// install parent lang if defined
if ($parentlang = get_parent_language()) {
if ($cd = new component_installer('http://download.moodle.org', 'lang16', $parentlang.'.zip', 'languages.md5', 'lang')) {
$cd->install();
}
}
}
}