diff options
author | Frank Karlitschek <karlitschek@kde.org> | 2011-09-27 19:08:38 +0200 |
---|---|---|
committer | Frank Karlitschek <karlitschek@kde.org> | 2011-09-27 19:08:38 +0200 |
commit | 10c5178e31403b92b42fa59f9bb83f71dbef955a (patch) | |
tree | 606edc9e44db695c1dd3ba844f1dbdc4b3532f7a /lib/util.php | |
parent | bf3248bee9d3903cc40b4271215a3e537b68ac34 (diff) | |
download | nextcloud-server-10c5178e31403b92b42fa59f9bb83f71dbef955a.tar.gz nextcloud-server-10c5178e31403b92b42fa59f9bb83f71dbef955a.zip |
check for php modules
Diffstat (limited to 'lib/util.php')
-rw-r--r-- | lib/util.php | 9 |
1 files changed, 8 insertions, 1 deletions
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<br/>','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.<br/>','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.<br/>','hint'=>'Please ask your server administrator to install the module.'); + } return $errors; } |