output MDL-24895 Removed debugging notice when setting an unchangeable pagelayout
authorSam Hemelryk <sam@moodle.com>
Fri, 5 Nov 2010 04:19:08 +0000 (04:19 +0000)
committerSam Hemelryk <sam@moodle.com>
Fri, 5 Nov 2010 04:19:08 +0000 (04:19 +0000)
lib/pagelib.php

index 519be0a..c929b17 100644 (file)
@@ -838,9 +838,13 @@ class moodle_page {
      * in the standard theme.
      */
     public function set_pagelayout($pagelayout) {
-        if (!empty($this->_wherethemewasinitialised) && $pagelayout != $this->_pagelayout) {
-            debugging('Page layout has already been set and cannot be changed.', DEBUG_DEVELOPER);
-        }
+        /**
+         * Uncomment this to debug theme pagelayout issues like missing blocks.
+         *
+         * if (!empty($this->_wherethemewasinitialised) && $pagelayout != $this->_pagelayout) {
+         *     debugging('Page layout has already been set and cannot be changed.', DEBUG_DEVELOPER);
+         * }
+         */
         $this->_pagelayout = $pagelayout;
     }