From 09c45a63e81a9b0fcbda80cef237aa2a42341a70 Mon Sep 17 00:00:00 2001 From: Alexander Bias Date: Mon, 28 Oct 2024 21:07:40 +0100 Subject: [PATCH] Improvement: Use get_string() instead of lang_string class in index.php --- CHANGES.md | 4 ++++ index.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index a7b5e69..0751312 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,10 @@ moodle-tool_coursedates Changes ------- +### Unreleased + +* 2024-10-28 - Improvement: Use get_string() instead of lang_string class in index.php + ### v4.3-r2 * 2024-08-11 - Add section for scheduled tasks to README diff --git a/index.php b/index.php index 87d2579..1125a07 100644 --- a/index.php +++ b/index.php @@ -45,7 +45,7 @@ $PAGE->set_context($context); $PAGE->set_pagelayout('admin'); $PAGE->set_url($url); -$PAGE->set_title(new lang_string('coursecatmanagement') . ': '. get_string('setfields', 'tool_coursefields')); +$PAGE->set_title(get_string('coursecatmanagement') . ': '. get_string('setfields', 'tool_coursefields')); $PAGE->set_heading($SITE->fullname); // Create form.