From 6a525ce289a4434fb892a14aae0e604f0b1c9411 Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 20 Jan 2008 17:59:26 +0000 Subject: [PATCH] MDL-12983 Installation stops after trying to download Language-Pack - patch by Dan Poltawski; merged from MOODLE_19_STABLE --- install.php | 2 +- lib/setup.php | 2 -- lib/setuplib.php | 6 ++++++ 3 files changed, 7 insertions(+), 3 deletions(-) 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. * -- 2.39.5