MDL-9151 fixed missing global definition, sorry :-(

This commit is contained in:
skodak 2007-04-19 12:18:44 +00:00
parent dac786f300
commit 85fbf88489

View file

@ -1658,6 +1658,8 @@ function trusttext_prepare_edit(&$text, &$format, $usehtmleditor, $context) {
*/ */
function clean_text($text, $format=FORMAT_MOODLE) { function clean_text($text, $format=FORMAT_MOODLE) {
global $ALLOWED_TAGS, $CFG;
if (empty($text) or is_numeric($text)) { if (empty($text) or is_numeric($text)) {
return (string)$text; return (string)$text;
} }