MDL-49923 theme_clean: The core renderer was in the wrong folder
authorDamyon Wiese <damyon@moodle.com>
Mon, 4 May 2015 08:57:10 +0000 (16:57 +0800)
committerDamyon Wiese <damyon@moodle.com>
Mon, 4 May 2015 08:57:10 +0000 (16:57 +0800)
Renderers need to follow autoloading rules or be included from renderer.php.

theme/clean/classes/core_renderer.php [moved from theme/clean/renderers/core_renderer.php with 87% similarity]

similarity index 87%
rename from theme/clean/renderers/core_renderer.php
rename to theme/clean/classes/core_renderer.php
index 41cc0bf..fe88600 100644 (file)
@@ -14,6 +14,8 @@
 // You should have received a copy of the GNU General Public License
 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
 
+require_once($CFG->dirroot . '/theme/bootstrapbase/renderers.php');
+
 /**
  * Clean core renderers.
  *
@@ -33,9 +35,9 @@ class theme_clean_core_renderer extends theme_bootstrapbase_core_renderer {
      */
     public function full_header($heading = null) {
         if (!empty($this->page->theme->settings->logo)) {
-            return $this->full_header(html_writer::tag('div', '', array('class' => 'logo')));
+            return parent::full_header(html_writer::tag('div', '', array('class' => 'logo')));
         }
-        return $this->full_header();
+        return parent::full_header();
     }
 
 }