From dd636abf38ef995761bffa2d78c2c2a62610b89e Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Mon, 4 May 2015 16:57:10 +0800 Subject: [PATCH] MDL-49923 theme_clean: The core renderer was in the wrong folder Renderers need to follow autoloading rules or be included from renderer.php. --- theme/clean/{renderers => classes}/core_renderer.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) rename theme/clean/{renderers => classes}/core_renderer.php (87%) diff --git a/theme/clean/renderers/core_renderer.php b/theme/clean/classes/core_renderer.php similarity index 87% rename from theme/clean/renderers/core_renderer.php rename to theme/clean/classes/core_renderer.php index 41cc0bf8089f0..fe8860021717a 100644 --- a/theme/clean/renderers/core_renderer.php +++ b/theme/clean/classes/core_renderer.php @@ -14,6 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Moodle. If not, see . +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(); } }