diff --git a/CHANGES.md b/CHANGES.md index 65d62fb4c821ad37bc7b698406989382ad17d09d..15178be40c9e7fa86b79b941dab50f4054aa21c4 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 5128c667a82259a00209dee2aebfef340e515832..0b1695d0d3bfa1d12996e633f1a428b0179353e0 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 b674c01fee012835de2e6a258e8eec25f2fd545d..a4d4b24db5e37aafcc952992a1aa596bd6a3bab1 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