Skip to content

Commit a58f935

Browse files
committed
Upgrade: Adopt changes from MDL-81960 and use new \core\url class
1 parent b3b6185 commit a58f935

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Changes
66

77
### Unreleased
88

9+
* 2024-10-14 - Upgrade: Adopt changes from MDL-81960 and use new \core\url class
910
* 2024-10-14 - Upgrade: Adopt changes from MDL-82158 and use new \core_cache\helper class.
1011
* 2024-10-07 - Prepare compatibility for Moodle 4.5.
1112

classes/event/courses_sorted.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ public function get_description() {
6767
/**
6868
* Get url related to the action.
6969
*
70-
* @return \moodle_url
70+
* @return \core\url
7171
*/
7272
public function get_url() {
73-
return new \moodle_url('/course/index.php', ['categoryid' => $this->objectid]);
73+
return new \core\url('/course/index.php', ['categoryid' => $this->objectid]);
7474
}
7575
}

0 commit comments

Comments
 (0)