diff --git a/admin/langimport.php b/admin/langimport.php index 4a38b29ec23..5e74a245731 100755 --- a/admin/langimport.php +++ b/admin/langimport.php @@ -44,10 +44,10 @@ $status = $cd->install(); //returns ERROR | UPTODATE | INSTALLED switch ($status) { - case ERROR: + case ERROR: if ($cd->get_error() == 'remotedownloadnotallowed') { $a = new stdClass(); - $a->url = 'http://download.moodle.org/lang16/'.$pack.'zip'; + $a->url = 'http://download.moodle.org/lang16/'.$pack.'.zip'; $a->dest= $CFG->dataroot.'/lang'; error(get_string($cd->get_error(), 'error', $a)); } else { @@ -185,7 +185,7 @@ case ERROR: if ($cd->get_error() == 'remotedownloadnotallowed') { $a = new stdClass(); - $a->url = 'http://download.moodle.org/lang16/'.$pack.'zip'; + $a->url = 'http://download.moodle.org/lang16/'.$pack.'.zip'; $a->dest= $CFG->dataroot.'/lang'; error(get_string($cd->get_error(), 'error', $a)); } else { diff --git a/install.php b/install.php index 1f7b8a0fa87..62c2a3068f2 100644 --- a/install.php +++ b/install.php @@ -461,7 +461,7 @@ if ($INSTALL['stage'] == DOWNLOADLANG && $INSTALL['downloadlangpack']) { case ERROR: if ($cd->get_error() == 'remotedownloadnotallowed') { $a = new stdClass(); - $a->url = 'http://download.moodle.org/lang16/'.$pack.'zip'; + $a->url = 'http://download.moodle.org/lang16/'.$pack.'.zip'; $a->dest= $CFG->dataroot.'/lang'; $downloaderror = get_string($cd->get_error(), 'error', $a); } else {