]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-8758 - Corrected the packagezip -> package.zip typo in 3 locations (2 in admin...
authornicolasconnault <nicolasconnault>
Wed, 7 Mar 2007 02:02:41 +0000 (02:02 +0000)
committernicolasconnault <nicolasconnault>
Wed, 7 Mar 2007 02:02:41 +0000 (02:02 +0000)
admin/langimport.php
install.php

index 4a38b29ec2315b945f56d4d7c012081e2dd10abe..5e74a245731d0514d3d18bd6f9865a49557a105e 100755 (executable)
                     $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 {
                     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 {
index 6c71c63bc5a002896c83831dc058074588fa8a3d..7c1695f1a7d45766475bf940f2c1363e19546dc1 100644 (file)
@@ -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 {