MDL-72911 core_courseformat: fix deprecation messages

This commit is contained in:
Ferran Recio
2021-12-28 12:50:53 +01:00
committed by Sara Arjona
parent 43499d332c
commit 88e17ccad9
9 changed files with 112 additions and 107 deletions
+5 -2
View File
@@ -989,8 +989,11 @@ function make_editing_buttons() {
* @deprecated since 2.5
*/
function print_section() {
throw new coding_exception('Function print_section() is removed. Please use core_course\output\section_format '.
' to render a course section instead.');
throw new coding_exception(
'Function print_section() is removed.' .
' Please use core_courseformat\\output\\local\\content\\section' .
' to render a course section instead.'
);
}
/**