From 44ab05b31d4c6702762ca4e3308ceb9ea13b6a06 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Mon, 8 Dec 2014 09:12:03 +0800 Subject: [PATCH] MDL-44088 ajax: Final deprecation of ajaxenabled() php function --- lib/deprecatedlib.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/lib/deprecatedlib.php b/lib/deprecatedlib.php index 987e5c283b9..e02d3b3e1c0 100644 --- a/lib/deprecatedlib.php +++ b/lib/deprecatedlib.php @@ -3930,17 +3930,12 @@ function count_login_failures($mode, $username, $lastlogin) { } /** - * Returns whether ajax is enabled/allowed or not. - * This function is deprecated and always returns true. + * It should no longer be required to work without JavaScript enabled. * - * @param array $unused - not used any more. - * @return bool - * @deprecated since 2.7 MDL-33099 - please do not use this function any more. - * @todo MDL-44088 This will be removed in Moodle 2.9. + * @deprecated since 2.7 MDL-33099/MDL-44088 - please do not use this function any more. */ function ajaxenabled(array $browsers = null) { - debugging('ajaxenabled() is deprecated - please update your code to assume it returns true.', DEBUG_DEVELOPER); - return true; + throw new coding_exception('ajaxenabled() can not be used anymore. Update your code to work with JS at all times.'); } /**