Skip to content

Commit

Permalink
MDL-12983 Installation stops after trying to download Language-Pack -…
Browse files Browse the repository at this point in the history
… patch by Dan Poltawski; merged from MOODLE_19_STABLE
  • Loading branch information
skodak committed Jan 20, 2008
1 parent 7008d48 commit 6a525ce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion install.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 0 additions & 2 deletions lib/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
6 changes: 6 additions & 0 deletions lib/setuplib.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
// loaded.


/**
* Simple class
*/
class object {};


/**
* Initializes our performance info early.
*
Expand Down

0 comments on commit 6a525ce

Please sign in to comment.