From 00f59c226e193b61f239baa8cd675fede252c40f Mon Sep 17 00:00:00 2001 From: Gareth Barnard <1058419+gjb2048@users.noreply.github.com> Date: Fri, 26 Nov 2021 17:50:56 +0000 Subject: [PATCH] MDL-73173 core_my: Confusing 'Content' region. --- my/courses.php | 1 + theme/boost/config.php | 3 +-- theme/boost/lang/en/theme_boost.php | 1 - theme/classic/config.php | 3 +-- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/my/courses.php b/my/courses.php index 0351e413ce4..9b59fc84acb 100644 --- a/my/courses.php +++ b/my/courses.php @@ -54,6 +54,7 @@ $PAGE->set_pagelayout('mycourses'); $PAGE->has_secondary_navigation_setter(false); $PAGE->set_pagetype('my-index'); +$PAGE->blocks->add_region('content'); $PAGE->set_subpage($currentpage->id); $PAGE->set_title(get_string('mycourses')); $PAGE->set_heading(get_string('mycourses')); diff --git a/theme/boost/config.php b/theme/boost/config.php index ee61566f096..ac1c0edbb33 100644 --- a/theme/boost/config.php +++ b/theme/boost/config.php @@ -81,8 +81,7 @@ $THEME->layouts = [ // My courses page. 'mycourses' => array( 'file' => 'columns2.php', - 'regions' => array('content'), - 'defaultregion' => 'content', + 'regions' => array() ), // My dashboard page. 'mydashboard' => array( diff --git a/theme/boost/lang/en/theme_boost.php b/theme/boost/lang/en/theme_boost.php index 438b148d33c..16f509b45d9 100644 --- a/theme/boost/lang/en/theme_boost.php +++ b/theme/boost/lang/en/theme_boost.php @@ -49,7 +49,6 @@ $string['rawscss_desc'] = 'Use this field to provide SCSS or CSS code which will $string['rawscsspre'] = 'Raw initial SCSS'; $string['rawscsspre_desc'] = 'In this field you can provide initialising SCSS code, it will be injected before everything else. Most of the time you will use this setting to define variables.'; $string['region-side-pre'] = 'Right'; -$string['region-content'] = 'Content'; $string['showfooter'] = 'Show footer'; $string['privacy:metadata:preference:draweropennav'] = 'The user\'s preference for hiding or showing the drawer menu navigation.'; $string['privacy:drawernavclosed'] = 'The current preference for the navigation drawer is closed.'; diff --git a/theme/classic/config.php b/theme/classic/config.php index a4d584931bd..da07493f375 100644 --- a/theme/classic/config.php +++ b/theme/classic/config.php @@ -75,8 +75,7 @@ $THEME->layouts = [ // My courses page. 'mycourses' => array( 'file' => 'columns.php', - 'regions' => array('content'), - 'defaultregion' => 'content', + 'regions' => array() ), // My dashboard page. 'mydashboard' => array(