From 58b69e73999d57d69994d945ce25f652f78c38df Mon Sep 17 00:00:00 2001
From: Kathrin Osswald <kathrin.osswald@uni-ulm.de>
Date: Fri, 31 May 2019 11:36:37 +0200
Subject: [PATCH] Adjusted function full_header() in core_renderer.php due to
 upstream changes in theme Boost.

---
 CHANGES.md                                                  | 1 +
 classes/output/core_renderer.php                            | 6 +++---
 templates/{header.mustache => full_header.mustache}         | 2 +-
 ...ader.mustache.original => full_header.mustache.original} | 0
 4 files changed, 5 insertions(+), 4 deletions(-)
 rename templates/{header.mustache => full_header.mustache} (98%)
 rename templates/{header.mustache.original => full_header.mustache.original} (100%)

diff --git a/CHANGES.md b/CHANGES.md
index 65d62fb..15178be 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -6,6 +6,7 @@ Changes
 
 ### Unreleased
 
+* 2019-05-31 - Adjusted function full_header() in core_renderer.php due to upstream changes in theme Boost.
 * 2019-05-31 - Fixed referencing of renderers due to upstream changes in theme Boost.
 * 2019-05-31 - Prepare compatibility for Moodle 3.7.
 
diff --git a/classes/output/core_renderer.php b/classes/output/core_renderer.php
index 5128c66..0b1695d 100644
--- a/classes/output/core_renderer.php
+++ b/classes/output/core_renderer.php
@@ -141,7 +141,7 @@ class core_renderer extends \core_renderer {
      * Override to display switched role information beneath the course header instead of the user menu.
      * We change this because the switch role function is course related and therefore it should be placed in the course context.
      *
-     * MODIFICATION: This renderer function is copied and modified from /theme/boost/classes/output/core_renderer.php
+     * MODIFICATION: This renderer function is copied and modified from /lib/outputrenderers.php
      *
      * Wrapper for header elements.
      *
@@ -197,10 +197,10 @@ class core_renderer extends \core_renderer {
         // MODIFICATION START:
         // Change this to add the result in the html variable to be able to add further features below the header.
         // Render from the own header template.
-        $html = $this->render_from_template('theme_boost_campus/header', $header);
+        $html = $this->render_from_template('theme_boost_campus/full_header', $header);
         // MODIFICATION END.
         /* ORIGINAL START
-        return $this->render_from_template('theme_boost/header', $header);
+        return $this->render_from_template('core/full_header', $header);
         ORIGINAL END. */
 
         // MODIFICATION START:
diff --git a/templates/header.mustache b/templates/full_header.mustache
similarity index 98%
rename from templates/header.mustache
rename to templates/full_header.mustache
index b674c01..a4d4b24 100644
--- a/templates/header.mustache
+++ b/templates/full_header.mustache
@@ -15,7 +15,7 @@
     along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
 }}
 {{!
-    @template theme_boost_campus/header
+    @template theme_boost_campus/full_header
 
     This template renders the header.
 
diff --git a/templates/header.mustache.original b/templates/full_header.mustache.original
similarity index 100%
rename from templates/header.mustache.original
rename to templates/full_header.mustache.original
-- 
GitLab