]> source.dussan.org Git - nextcloud-server.git/commitdiff
check for php modules
authorFrank Karlitschek <karlitschek@kde.org>
Tue, 27 Sep 2011 17:08:38 +0000 (19:08 +0200)
committerFrank Karlitschek <karlitschek@kde.org>
Tue, 27 Sep 2011 17:08:38 +0000 (19:08 +0200)
lib/util.php

index 51d8cc4d64311abe2c28679473bfc2e9220f5192..c7a2c5098006433a39bf31362d597a1a839edf9c 100644 (file)
@@ -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;
        }