From: moodler Date: Tue, 20 Jan 2004 10:03:34 +0000 (+0000) Subject: Make sure XML is enabled X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c9b7e81ac014b1855c6e148b3c8f314564b45632;p=moodle.git Make sure XML is enabled --- diff --git a/filter/multilang/multilang.php b/filter/multilang/multilang.php index 71a352a682..396cf98ae3 100644 --- a/filter/multilang/multilang.php +++ b/filter/multilang/multilang.php @@ -48,6 +48,11 @@ if (function_exists($textfilter_function)) { function multilang_filter($courseid, $text) { +/// Make sure XML is enabled in this PHP + if (!function_exists('xml_parser_create')) { + return $text; + } + /// Do a quick check using stripos to avoid unnecessary work if (stripos($text, '