mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-9151 fixed missing global definition, sorry :-(
This commit is contained in:
parent
dac786f300
commit
85fbf88489
1 changed files with 2 additions and 0 deletions
|
@ -1658,6 +1658,8 @@ function trusttext_prepare_edit(&$text, &$format, $usehtmleditor, $context) {
|
|||
*/
|
||||
function clean_text($text, $format=FORMAT_MOODLE) {
|
||||
|
||||
global $ALLOWED_TAGS, $CFG;
|
||||
|
||||
if (empty($text) or is_numeric($text)) {
|
||||
return (string)$text;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue