From c9b7e81ac014b1855c6e148b3c8f314564b45632 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 20 Jan 2004 10:03:34 +0000 Subject: [PATCH] Make sure XML is enabled --- filter/multilang/multilang.php | 5 +++++ 1 file changed, 5 insertions(+) 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, '