diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-02-28 15:13:18 +0100 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-02-28 15:13:18 +0100 |
commit | 59835a9087e3b18dbf4e92dd84f4c77d77fed68f (patch) | |
tree | 9e0f25cdddfc46347f9696d937719f1609042bb1 /lib/util.php | |
parent | a2147c4f890e400fd37f20aa45472e3a5a5954c8 (diff) | |
download | nextcloud-server-59835a9087e3b18dbf4e92dd84f4c77d77fed68f.tar.gz nextcloud-server-59835a9087e3b18dbf4e92dd84f4c77d77fed68f.zip |
add checks for xml and dom when installing
Diffstat (limited to 'lib/util.php')
-rwxr-xr-x | lib/util.php | 11 |
1 files changed, 10 insertions, 1 deletions
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.<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.'); |