From 52deafc14322a8eee600450ee0adae1a9f37b6d8 Mon Sep 17 00:00:00 2001 From: David Mudrak Date: Tue, 3 May 2011 01:40:46 +0200 Subject: [PATCH] MDL-27317 Fixed incorrect variable names in the language pack update This was introduced by copying & pasting the code during 74a4c9. --- lib/upgradelib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/upgradelib.php b/lib/upgradelib.php index a526068897c..976d59a59bb 100644 --- a/lib/upgradelib.php +++ b/lib/upgradelib.php @@ -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');