Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Deprecated badges/view.php and course_badges system report [MDL-82503] #1101

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion docs/devupdate.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ This page highlights the important changes that are coming in Moodle 4.5 for dev

### Deprecated `badges/newbadge.php`

<Since version="4.5" issueNumber="MDL-43938" />

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

Expand All @@ -29,6 +31,28 @@ https://yourmoodlesite/badges/edit.php?courseid=x&mode=new

:::

### Deprecated `badges/view.php`

<Since version="4.5" issueNumber="MDL-82503" />

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
Expand Down
Loading