diff --git a/Changes.md b/Changes.md index 09e956c..a6528f0 100644 --- a/Changes.md +++ b/Changes.md @@ -1,3 +1,8 @@ +Change Log in version 402.1.1 (2023092502) +=========================================== +1. Fix '$OUTPUT is null' - ref: https://moodle.org/mod/forum/discuss.php?d=453194#p1827606. +2. Fix missing calls to 'user_preference_allow_ajax_update' as in M4.3 they are deprecated. + Change Log in version 402.1.0 (2023092501) =========================================== 1. Add the ability to show the marketing blocks when 'Logged out', 'Logged in' or 'Logged in or out', diff --git a/classes/output/core_renderer_layout.php b/classes/output/core_renderer_layout.php index b587b2e..ae9b92d 100644 --- a/classes/output/core_renderer_layout.php +++ b/classes/output/core_renderer_layout.php @@ -499,6 +499,9 @@ protected function head($bodyclasses) { protected function courseindexheader() { global $CFG; require_once($CFG->dirroot . '/course/lib.php'); + + user_preference_allow_ajax_update('drawer-open-index', PARAM_BOOL); + $left = \theme_adaptable\toolbox::get_setting('blockside'); if (isloggedin()) { @@ -526,6 +529,8 @@ protected function courseindexheader() { } protected function sidepostheader() { + user_preference_allow_ajax_update('drawer-open-block', PARAM_BOOL); + $left = \theme_adaptable\toolbox::get_setting('blockside'); if (isloggedin()) { @@ -1306,7 +1311,7 @@ public function secure_layout() { echo '