Skip to content

Commit

Permalink
MDL-8758 - Corrected the packagezip -> package.zip typo in 3 location…
Browse files Browse the repository at this point in the history
…s (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.
  • Loading branch information
nicolasconnault committed Mar 7, 2007
1 parent 40242aa commit 4eaf16f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions admin/langimport.php
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion install.php
Expand Up @@ -461,7 +461,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';
$downloaderror = get_string($cd->get_error(), 'error', $a);
} else {
Expand Down

0 comments on commit 4eaf16f

Please sign in to comment.