Skip to content

Commit

Permalink
Improvement: Use get_string() instead of lang_string class in index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
abias committed Oct 28, 2024
1 parent 2d286d5 commit 09c45a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 09c45a6

Please sign in to comment.