Skip to content

Commit

Permalink
Upgrade: Adopt changes from MDL-81960 and use new \core\url class
Browse files Browse the repository at this point in the history
  • Loading branch information
abias committed Oct 28, 2024
1 parent cf562c6 commit 461c4d3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-81031 and use new \core\user class.
* 2024-10-07 - Prepare compatibility for Moodle 4.5.

Expand Down
4 changes: 2 additions & 2 deletions classes/event/course_restored.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ public function get_description() {
/**
* Get url related to the action.
*
* @return \moodle_url
* @return \core\url
*/
public function get_url() {
return new \moodle_url('/course/view.php', ['id' => $this->objectid]);
return new \core\url('/course/view.php', ['id' => $this->objectid]);
}
}
2 changes: 1 addition & 1 deletion settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
$html .= html_writer::tag('p', get_string('cronruntimescheduledtasksstandardtime', 'local_sandbox', null, true));
$html .= html_writer::start_tag('p');
$html .= html_writer::link(
new moodle_url('/admin/tool/task/scheduledtasks.php'), get_string('scheduledtasks', 'tool_task', null, true));
new \core\url('/admin/tool/task/scheduledtasks.php'), get_string('scheduledtasks', 'tool_task', null, true));
$html .= html_writer::end_tag('p');
$page->add(new admin_setting_heading('local_sandbox/cronruntimehint', '', $html));

Expand Down

0 comments on commit 461c4d3

Please sign in to comment.