mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
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.
This commit is contained in:
parent
40242aaa8f
commit
4eaf16f264
2 changed files with 4 additions and 4 deletions
|
@ -44,10 +44,10 @@
|
||||||
$status = $cd->install(); //returns ERROR | UPTODATE | INSTALLED
|
$status = $cd->install(); //returns ERROR | UPTODATE | INSTALLED
|
||||||
switch ($status) {
|
switch ($status) {
|
||||||
|
|
||||||
case ERROR:
|
case ERROR:
|
||||||
if ($cd->get_error() == 'remotedownloadnotallowed') {
|
if ($cd->get_error() == 'remotedownloadnotallowed') {
|
||||||
$a = new stdClass();
|
$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';
|
$a->dest= $CFG->dataroot.'/lang';
|
||||||
error(get_string($cd->get_error(), 'error', $a));
|
error(get_string($cd->get_error(), 'error', $a));
|
||||||
} else {
|
} else {
|
||||||
|
@ -185,7 +185,7 @@
|
||||||
case ERROR:
|
case ERROR:
|
||||||
if ($cd->get_error() == 'remotedownloadnotallowed') {
|
if ($cd->get_error() == 'remotedownloadnotallowed') {
|
||||||
$a = new stdClass();
|
$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';
|
$a->dest= $CFG->dataroot.'/lang';
|
||||||
error(get_string($cd->get_error(), 'error', $a));
|
error(get_string($cd->get_error(), 'error', $a));
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -461,7 +461,7 @@ if ($INSTALL['stage'] == DOWNLOADLANG && $INSTALL['downloadlangpack']) {
|
||||||
case ERROR:
|
case ERROR:
|
||||||
if ($cd->get_error() == 'remotedownloadnotallowed') {
|
if ($cd->get_error() == 'remotedownloadnotallowed') {
|
||||||
$a = new stdClass();
|
$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';
|
$a->dest= $CFG->dataroot.'/lang';
|
||||||
$downloaderror = get_string($cd->get_error(), 'error', $a);
|
$downloaderror = get_string($cd->get_error(), 'error', $a);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue