From 3ff3496469f21c9b789e86346d4170830587c68e Mon Sep 17 00:00:00 2001 From: Alexander Bias Date: Mon, 28 Oct 2024 16:58:50 +0100 Subject: [PATCH] Upgrade: Adopt changes from MDL-81960 and use new \core\url class --- CHANGES.md | 1 + settings.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index d104496..8fe8fa9 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,6 +6,7 @@ Changes ### Unreleased +* 2024-10-14 - Upgrade: Adopt changes from MDL-81960 and use new \core\url class * 2024-10-14 - Upgrade: Adopt changes from MDL-81920 and use new \core\lang_string class. * 2024-10-14 - Upgrade: Adopt changes from MDL-82158 and use new \core_cache\factory class. * 2024-10-07 - Prepare compatibility for Moodle 4.5. diff --git a/settings.php b/settings.php index 635c6c0..8774a80 100644 --- a/settings.php +++ b/settings.php @@ -27,6 +27,6 @@ if ($hassiteconfig) { // Add the plugin's main page to the server settings category. $settingspage = new admin_externalpage('tool_redis', new \core\lang_string('pluginname', 'tool_redis'), - new moodle_url('/'.$CFG->admin.'/tool/redis/index.php'), 'moodle/site:config'); + new \core\url('/'.$CFG->admin.'/tool/redis/index.php'), 'moodle/site:config'); $ADMIN->add('server', $settingspage); }