From baab08c763077e239baabfb0df21c4329a4f8b47 Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Fri, 16 Aug 2024 09:21:35 +0200 Subject: [PATCH] [docs] Deprecated badges/view.php and course_badges system report In MDL-82503, `badges/index.php` and `badges/view.php` pages and `course_badges` and `badges` system reports have been combined. As a result, `badges/view.php` and `course_badges` have been deprecated. --- docs/devupdate.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/docs/devupdate.md b/docs/devupdate.md index 91cd31cbb7..5d868f8028 100644 --- a/docs/devupdate.md +++ b/docs/devupdate.md @@ -13,9 +13,11 @@ This page highlights the important changes that are coming in Moodle 4.5 for dev ### Deprecated `badges/newbadge.php` + + The `badges/newbadge.php` and `badges/edit.php` pages have been combined to make things easier to maintain since both were pretty similar (`newbadge.php` for creating badges and `edit.php` for editing them). -As a result, `badges/newbadge.php` is now deprecated and will be removed in Moodle 6.0. Please update your code to use badges/edit.php instead. +As a result, `badges/newbadge.php` is now deprecated and will be removed in Moodle 6.0. Please update your code to use `badges/edit.php` instead. :::info @@ -29,6 +31,28 @@ https://yourmoodlesite/badges/edit.php?courseid=x&mode=new ::: +### Deprecated `badges/view.php` + + + +The `badges/index.php` and `badges/view.php` pages have been combined to make things easier to maintain since both were pretty similar and the workflow for accessing badges from the course page was confusing in some cases. + +As a result, `badges/view.php` is now deprecated and will be removed in Moodle 6.0. Please update your code to use `badges/index.php` instead. + +Apart from that, the `course_badges` system report has been merged with `badges` system report. It has been deprecated too and will be removed in Moodle 6.0. Please update your code to use `badges` system report instead. + +:::info + +Visiting + +https://yourmoodlesite/badges/view.php?type=x&id=x + +will now automatically redirect to + +https://yourmoodlesite/badges/index.php?type=x&id=x + +::: + ## Core changes ### Autoloader