Merge pull request #1987 from owncloud/fixinstalldeps

add checks for xml and dom when installing
This commit is contained in:
Bernhard Posselt 2013-02-28 06:36:19 -08:00
commit 93e713d378
1 changed files with 10 additions and 1 deletions

View File

@ -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.');