From a66fe103361060178bb6282b5ae46d9d04877a25 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Wed, 7 Mar 2007 02:02:41 +0000 Subject: [PATCH] MDL-8758 - Corrected the packagezip -> package.zip typo in 3 locations (2 in admin/langimport.php and 1 in install.php). The notification about allow_url_fopen has already been added to the default lang/en_utf8/error.php string. --- admin/langimport.php | 6 +++--- install.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/langimport.php b/admin/langimport.php index 4a38b29ec2..5e74a24573 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 6c71c63bc5..7c1695f1a7 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 { -- 2.39.5