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 '
'; echo '
'; echo $this->get_course_alerts(); - echo $OUTPUT->course_content_header(); + echo $this->course_content_header(); if (!empty($secondarynavigation)) { echo $secondarynavigation; } diff --git a/version.php b/version.php index 034bd35..0de1d69 100644 --- a/version.php +++ b/version.php @@ -33,14 +33,14 @@ $plugin->component = 'theme_adaptable'; // Adaptable version date (YYYYMMDDrr where rr is the release number). -$plugin->version = 2023092501; +$plugin->version = 2023092502; $plugin->requires = 2023042400.00; // 4.2 (Build: 20230424). $plugin->supported = [402, 402]; // Adaptable version using SemVer (https://semver.org). -$plugin->release = '402.1.0'; +$plugin->release = '402.1.1'; // Adaptable maturity (do not use ALPHA or BETA versions in production sites). $plugin->maturity = MATURITY_STABLE;