diff --git a/install.php b/install.php index 065547afb88f0..cade4969a8f1c 100644 --- a/install.php +++ b/install.php @@ -473,7 +473,7 @@ 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 98c5909b0cc71..366f394d206ad 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -488,8 +488,6 @@ function addslashes_deep($value) { /// 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 875427a94c66c..b076a9a8c9881 100644 --- a/lib/setuplib.php +++ b/lib/setuplib.php @@ -4,6 +4,12 @@ // loaded. +/** + * Simple class + */ +class object {}; + + /** * Initializes our performance info early. *