MDL-12983 Installation stops after trying to download Language-Pack - patch by Dan Poltawski
This commit is contained in:
+1
-1
@@ -473,7 +473,7 @@ if ($INSTALL['stage'] == DOWNLOADLANG && $INSTALL['downloadlangpack']) {
|
||||
case COMPONENT_ERROR:
|
||||
if ($cd->get_error() == 'remotedownloaderror') {
|
||||
$a = new stdClass();
|
||||
$a->url = 'http://download.moodle.org/lang16/'.$pack.'.zip';
|
||||
$a->url = 'http://download.moodle.org/lang16/'.$INSTALL['language'].'.zip';
|
||||
$a->dest= $CFG->dataroot.'/lang';
|
||||
$downloaderror = get_string($cd->get_error(), 'error', $a);
|
||||
} else {
|
||||
|
||||
@@ -488,8 +488,6 @@ global $HTTPSPAGEREQUIRED;
|
||||
|
||||
/// Load up global environment variables
|
||||
|
||||
class object {};
|
||||
|
||||
//discard session ID from POST, GET and globals to tighten security,
|
||||
//this session fixation prevention can not be used in cookieless mode
|
||||
if (empty($CFG->usesid)) {
|
||||
|
||||
@@ -4,6 +4,12 @@
|
||||
// loaded.
|
||||
|
||||
|
||||
/**
|
||||
* Simple class
|
||||
*/
|
||||
class object {};
|
||||
|
||||
|
||||
/**
|
||||
* Initializes our performance info early.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user