MDL-78806 core: Add upgrade.txt notes

This commit is contained in:
Jun Pataleta 2023-08-03 23:24:15 +08:00
parent 6664d3ebe6
commit 89e853437b
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7

View File

@ -1,6 +1,13 @@
This files describes API changes in core libraries and APIs,
information provided here is intended especially for developers.
=== 4.1.6 ===
* \moodle_page::set_title() has been updated to append the site name depending on the value of $CFG->sitenameintitle and whether
the site's fullname/shortname has been set. So there's no need to manually add the site name whenever calling $PAGE->set_title().
If it's necessary to override this, pass `false` to its new optional parameter `$appendsitename`.
* New page title separator constant `moodle_page:TITLE_SEPARATOR` has been created to help standardise the separators used in page
titles.
=== 4.1.5 ===
* Added a new render of caption for the table in render_caption. It can be used by
set_caption($caption, $captionattributes).