]> git.mjollnir.org Git - moodle.git/commitdiff
Fix my silly mistake. Thanks for noticing Eloy.
authortjhunt <tjhunt>
Wed, 22 Jul 2009 14:26:47 +0000 (14:26 +0000)
committertjhunt <tjhunt>
Wed, 22 Jul 2009 14:26:47 +0000 (14:26 +0000)
lib/outputlib.php

index 844ec8df8a024e5e1e2ac0b189d70c5d349dec90..4d7616eea08ac58a2e39cb90638443082e73424b 100644 (file)
@@ -1972,7 +1972,7 @@ class moodle_core_renderer extends moodle_renderer_base {
 
         echo '<table id="layout-table"><tr>';
         foreach ($lt as $column) {
-            if ($column == 'left' && $this->page->blocks->region_has_content(BLOCK_POS_LEFT, $OUTPUT)) {
+            if ($column == 'left' && $this->page->blocks->region_has_content(BLOCK_POS_LEFT, $this)) {
                 echo '<td id="left-column" class="block-region" style="width: ' . $preferredwidthright . 'px; vertical-align: top;">';
                 echo $this->container_start();
                 echo $this->blocks_for_region(BLOCK_POS_LEFT);
@@ -1987,7 +1987,7 @@ class moodle_core_renderer extends moodle_renderer_base {
                 echo $this->container_end();
                 echo '</td>';
 
-            } else if ($column == 'right' && $this->page->blocks->region_has_content(BLOCK_POS_RIGHT, $OUTPUT)) {
+            } else if ($column == 'right' && $this->page->blocks->region_has_content(BLOCK_POS_RIGHT, $this)) {
                 echo '<td id="right-column" class="block-region" style="width: ' . $preferredwidthright . 'px; vertical-align: top;">';
                 echo $this->container_start();
                 echo $this->blocks_for_region(BLOCK_POS_RIGHT);