From 59835a9087e3b18dbf4e92dd84f4c77d77fed68f Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 28 Feb 2013 15:13:18 +0100 Subject: [PATCH] add checks for xml and dom when installing --- lib/util.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/util.php b/lib/util.php index 060db73da00..2e32ee2e3c2 100755 --- a/lib/util.php +++ b/lib/util.php @@ -222,7 +222,16 @@ class OC_Util { 'hint'=>'Please ask your server administrator to install the module.'); $web_server_restart= false; } - + if(!class_exists('DOMDocument')) { + $errors[] = array('error' => 'PHP module dom not installed.
', + 'hint' => 'Please ask your server administrator to install the module.'); + $web_server_restart = false; + } + if(!function_exists('xml_parser_create')) { + $errors[] = array('error' => 'PHP module libxml not installed.
', + 'hint' => 'Please ask your server administrator to install the module.'); + $web_server_restart = false; + } if(!function_exists('mb_detect_encoding')) { $errors[]=array('error'=>'PHP module mb multibyte not installed.
', 'hint'=>'Please ask your server administrator to install the module.'); -- 2.39.5