aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Setup.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-09-17 10:31:13 +0200
committerMario Vavti <mario@mariovavti.com>2018-09-17 10:31:13 +0200
commitdcacfc1124457c9d86bf0fa876829abb4701fbff (patch)
tree7d234920470ba97b58eaeaf2dadffe4a0217c06a /Zotlabs/Module/Setup.php
parent2f6cb764a4670f848123153e44d6aa58d6ab01b7 (diff)
parent593a5072d9b738ea036167f15776f90e829a1e64 (diff)
downloadvolse-hubzilla-dcacfc1124457c9d86bf0fa876829abb4701fbff.tar.gz
volse-hubzilla-dcacfc1124457c9d86bf0fa876829abb4701fbff.tar.bz2
volse-hubzilla-dcacfc1124457c9d86bf0fa876829abb4701fbff.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'Zotlabs/Module/Setup.php')
-rw-r--r--Zotlabs/Module/Setup.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/Zotlabs/Module/Setup.php b/Zotlabs/Module/Setup.php
index a3832d156..50b40834b 100644
--- a/Zotlabs/Module/Setup.php
+++ b/Zotlabs/Module/Setup.php
@@ -526,14 +526,21 @@ class Setup extends \Zotlabs\Web\Controller {
$ck_funcs[0]['status'] = false;
$ck_funcs[0]['help'] = t('Error: libCURL PHP module required but not installed.');
}
- if(! function_exists('imagecreatefromjpeg')) {
+ if((! function_exists('imagecreatefromjpeg')) || (! class_exists('Imagick'))) {
$ck_funcs[1]['status'] = false;
- $ck_funcs[1]['help'] = t('Error: GD graphics PHP module with JPEG support required but not installed.');
+ $ck_funcs[1]['help'] = t('Error: GD PHP module with JPEG support or ImageMagick graphics library required but not installed.');
}
if(! function_exists('openssl_public_encrypt')) {
$ck_funcs[2]['status'] = false;
$ck_funcs[2]['help'] = t('Error: openssl PHP module required but not installed.');
}
+ if(class_exists('PDO')) {
+ $x = PDO::getAvailableDrivers();
+ if((! in_array('mysql',$x)) && (! in_array('pgsql',$x))) {
+ $ck_funcs[3]['status'] = false;
+ $ck_funcs[3]['help'] = t('Error: PDO database PHP module missing a driver for either mysql or pgsql.');
+ }
+ }
if(! class_exists('PDO')) {
$ck_funcs[3]['status'] = false;
$ck_funcs[3]['help'] = t('Error: PDO database PHP module required but not installed.');