MDL-12983 Installation stops after trying to download Language-Pack - patch by Dan Poltawski

This commit is contained in:
skodak
2008-01-20 17:58:06 +00:00
parent ec5e30a4e9
commit cb2bf96fe9
3 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -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 {
-2
View File
@@ -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)) {
+6
View File
@@ -4,6 +4,12 @@
// loaded.
/**
* Simple class
*/
class object {};
/**
* Initializes our performance info early.
*