From: Frank Karlitschek Date: Tue, 27 Sep 2011 17:08:38 +0000 (+0200) Subject: check for php modules X-Git-Tag: v3.0~136 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=10c5178e31403b92b42fa59f9bb83f71dbef955a;p=nextcloud-server.git check for php modules --- diff --git a/lib/util.php b/lib/util.php index 51d8cc4d643..c7a2c509800 100644 --- a/lib/util.php +++ b/lib/util.php @@ -242,7 +242,14 @@ class OC_Util { $errors[]=array('error'=>'Data directory ('.$CONFIG_DATADIRECTORY_ROOT.') not writable by ownCloud
','hint'=>$permissionsHint); } - //TODO: check for php modules + // check if all required php modules are present + if(!class_exists('ZipArchive')){ + $errors[]=array('error'=>'PHP module ZipArchive not installed.
','hint'=>'Please ask your server administrator to install the module.'); + } + + 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.'); + } return $errors; }