From 9621e7a85c91cc0840cc464b4f9afcf59d4ad15c Mon Sep 17 00:00:00 2001 From: Michael Milette Date: Thu, 3 Oct 2024 02:44:40 -0400 Subject: [PATCH] Fixed compatibility with Moodle 4.5. --- CHANGELOG.md | 4 ++++ classes/local_contact.php | 4 ++-- index.php | 2 +- version.php | 4 ++-- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dc64b3d..eb433f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Change Log All notable changes to this project will be documented in this file. +## [1.4.2] - 2024-10-03 +### Updated +- Fixed compatibility with Moodle 4.5. + ## [1.4.1] - 2024-06-19 ### Updated - Fixed compatibility with PHP 5.6. diff --git a/classes/local_contact.php b/classes/local_contact.php index ea99615..fc5712c 100644 --- a/classes/local_contact.php +++ b/classes/local_contact.php @@ -422,8 +422,8 @@ function filterempty($string) { current_language(), getremoteaddr(), $this->moodleuserstatus($from->email), - format_text($SITE->fullname, FORMAT_HTML, ['context' => $systemcontext, 'escape' => false]) . ': ', - format_text($SITE->shortname, FORMAT_HTML, ['context' => $systemcontext, 'escape' => false]), + format_text($SITE->fullname, FORMAT_HTML, ['context' => $systemcontext]) . ': ', + format_text($SITE->shortname, FORMAT_HTML, ['context' => $systemcontext]), $CFG->wwwroot, $httpuseragent, $httpreferer, diff --git a/index.php b/index.php index c367f8b..f72bf64 100644 --- a/index.php +++ b/index.php @@ -44,7 +44,7 @@ $context = context_system::instance(); $PAGE->set_context($context); -$PAGE->set_heading(format_text($SITE->fullname, FORMAT_HTML, ['context' => $context, 'escape' => false])); +$PAGE->set_heading(format_text($SITE->fullname, FORMAT_HTML, ['context' => $context])); $PAGE->set_pagelayout('standard'); $PAGE->set_title(get_string('confirmationpage', 'local_contact')); $PAGE->navbar->add(''); diff --git a/version.php b/version.php index 907d24a..d05a3f2 100644 --- a/version.php +++ b/version.php @@ -25,9 +25,9 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2024061900; // The current module version (Date: YYYYMMDDXX). +$plugin->version = 2024100300; // The current module version (Date: YYYYMMDDXX). $plugin->requires = 2015111600; // Requires Moodle version 3.0. $plugin->component = 'local_contact'; // To check on upgrade, that module sits in correct place. -$plugin->release = '1.4.1'; +$plugin->release = '1.4.2'; $plugin->maturity = MATURITY_STABLE; $plugin->cron = 0;