diff --git a/CHANGES.md b/CHANGES.md index c0f66de..e50a97f 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.4-r1 * 2024-08-24 - Development: Rename master branch to main, please update your clones. 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.