Skip to content

Commit

Permalink
MDL-19010 Only output blocks after upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed May 6, 2009
1 parent e0eda20 commit 0a75f20
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/pagelib.php
Expand Up @@ -573,14 +573,17 @@ public function set_other_editing_capability($capability) {
* state. This is our last change to initialise things.
*/
protected function starting_output() {
global $CFG;
if (!$this->_course) {
global $SITE;
$this->set_course($SITE);
}

$this->initialise_standard_body_classes();

$this->blocks->load_blocks();
if ($CFG->version >= 2009050619) {
$this->blocks->load_blocks();
}
}

/**
Expand Down

0 comments on commit 0a75f20

Please sign in to comment.