Skip to content

Commit

Permalink
V402.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Jan 31, 2024
1 parent ad3e075 commit 464f93a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
5 changes: 5 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
7 changes: 6 additions & 1 deletion classes/output/core_renderer_layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down Expand Up @@ -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()) {
Expand Down Expand Up @@ -1306,7 +1311,7 @@ public function secure_layout() {
echo '<div id="region-main-box" class="col-12">';
echo '<section id="region-main">';
echo $this->get_course_alerts();
echo $OUTPUT->course_content_header();
echo $this->course_content_header();
if (!empty($secondarynavigation)) {
echo $secondarynavigation;
}
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 464f93a

Please sign in to comment.