]> source.dussan.org Git - nextcloud-server.git/commitdiff
add checks for xml and dom when installing
authorBernhard Posselt <nukeawhale@gmail.com>
Thu, 28 Feb 2013 14:13:18 +0000 (15:13 +0100)
committerBernhard Posselt <nukeawhale@gmail.com>
Thu, 28 Feb 2013 14:13:18 +0000 (15:13 +0100)
lib/util.php

index 060db73da00a0cf63d367cd8842f28e6d9efa3db..2e32ee2e3c25cca9c5736b8f99acb1c3806e74fb 100755 (executable)
@@ -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.<br/>',
+                               '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.<br/>',
+                               '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.<br/>',
                                'hint'=>'Please ask your server administrator to install the module.');