MDL-27317 Fixed incorrect variable names in the language pack update

This was introduced by copying & pasting the code during 74a4c9.
This commit is contained in:
David Mudrak
2011-05-06 23:38:02 +02:00
parent 804ebc77b8
commit 52deafc143
+2 -2
View File
@@ -1285,12 +1285,12 @@ function upgrade_language_pack($lang='') {
require_once($CFG->libdir.'/componentlib.class.php');
$installer = new lang_installer($pack);
$installer = new lang_installer($lang);
$results = $installer->run();
foreach ($results as $langcode => $langstatus) {
switch ($langstatus) {
case lang_installer::RESULT_DOWNLOADERROR:
echo $OUTPUT->notification($pack . '.zip');
echo $OUTPUT->notification($langcode . '.zip');
break;
case lang_installer::RESULT_INSTALLED:
echo $OUTPUT->notification(get_string('langpackinstalled', 'admin', $langcode), 'notifysuccess');