From 85fbf884896251bf0a661e12f2cfbdd4865d257f Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 19 Apr 2007 12:18:44 +0000 Subject: [PATCH] MDL-9151 fixed missing global definition, sorry :-( --- lib/weblib.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/weblib.php b/lib/weblib.php index 5f34a0805f..823c222018 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -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; } -- 2.39.5