From: skodak Date: Sun, 20 Jan 2008 17:59:26 +0000 (+0000) Subject: MDL-12983 Installation stops after trying to download Language-Pack - patch by Dan... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6a525ce289a4434fb892a14aae0e604f0b1c9411;p=moodle.git MDL-12983 Installation stops after trying to download Language-Pack - patch by Dan Poltawski; merged from MOODLE_19_STABLE --- diff --git a/install.php b/install.php index 065547afb8..cade4969a8 100644 --- a/install.php +++ b/install.php @@ -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 { diff --git a/lib/setup.php b/lib/setup.php index 98c5909b0c..366f394d20 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -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)) { diff --git a/lib/setuplib.php b/lib/setuplib.php index 875427a94c..b076a9a8c9 100644 --- a/lib/setuplib.php +++ b/lib/setuplib.php @@ -4,6 +4,12 @@ // loaded. +/** + * Simple class + */ +class object {}; + + /** * Initializes our performance info early. *