mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'MDL-44088-master' of git://github.com/andrewnicols/moodle
This commit is contained in:
commit
52a7001bc2
1 changed files with 3 additions and 8 deletions
|
@ -3900,17 +3900,12 @@ function count_login_failures($mode, $username, $lastlogin) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns whether ajax is enabled/allowed or not.
|
* It should no longer be required to work without JavaScript enabled.
|
||||||
* This function is deprecated and always returns true.
|
|
||||||
*
|
*
|
||||||
* @param array $unused - not used any more.
|
* @deprecated since 2.7 MDL-33099/MDL-44088 - please do not use this function 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.
|
|
||||||
*/
|
*/
|
||||||
function ajaxenabled(array $browsers = null) {
|
function ajaxenabled(array $browsers = null) {
|
||||||
debugging('ajaxenabled() is deprecated - please update your code to assume it returns true.', DEBUG_DEVELOPER);
|
throw new coding_exception('ajaxenabled() can not be used anymore. Update your code to work with JS at all times.');
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue