MDL-81962 core: Convert debugging to exception for final deprecation

This commit is contained in:
Andrew Nicols
2026-02-16 13:41:56 +08:00
parent 97d7c5ac5b
commit b0b7fdff94
5 changed files with 4 additions and 14 deletions
@@ -46,11 +46,9 @@ class confirm_action extends component_action {
?string $dialogtype = null,
) {
if ($callback !== null) {
debugging(
'The callback argument to new confirm_action() has been deprecated.' .
' If you need to use a callback, please write Javascript to use moodle-core-notification-confirmation ' .
'and attach to the provided events.',
DEBUG_DEVELOPER,
throw new \core\exception\coding_exception(
'The callback argument to new confirm_action() has been deprecated. '
. 'If you need to use a callback, please write appropriate Javascript.',
);
}
parent::__construct('click', 'M.util.show_confirm_dialog', [
@@ -30,7 +30,6 @@ Y.log("The moodle-core-notification parent module has been deprecated. " +
"requires": [
"moodle-core-notification-dialogue",
"moodle-core-notification-alert",
"moodle-core-notification-confirm",
"moodle-core-notification-exception",
"moodle-core-notification-ajaxexception"
]
@@ -1 +1 @@
YUI.add("moodle-core-notification",function(o,i){},"@VERSION@",{requires:["moodle-core-notification-dialogue","moodle-core-notification-alert","moodle-core-notification-confirm","moodle-core-notification-exception","moodle-core-notification-ajaxexception"]});
YUI.add("moodle-core-notification",function(o,i){},"@VERSION@",{requires:["moodle-core-notification-dialogue","moodle-core-notification-alert","moodle-core-notification-exception","moodle-core-notification-ajaxexception"]});
@@ -28,7 +28,6 @@ YUI.add('moodle-core-notification', function (Y, NAME) {
"requires": [
"moodle-core-notification-dialogue",
"moodle-core-notification-alert",
"moodle-core-notification-confirm",
"moodle-core-notification-exception",
"moodle-core-notification-ajaxexception"
]
@@ -3,7 +3,6 @@
"requires": [
"moodle-core-notification-dialogue",
"moodle-core-notification-alert",
"moodle-core-notification-confirm",
"moodle-core-notification-exception",
"moodle-core-notification-ajaxexception"
]
@@ -25,11 +24,6 @@
"moodle-core-notification-dialogue"
]
},
"moodle-core-notification-confirm": {
"requires": [
"moodle-core-notification-dialogue"
]
},
"moodle-core-notification-exception": {
"requires": [
"moodle-core-notification-dialogue"