mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 00:28:47 +02:00
➕ N°1885 add php-gd as a mandatory extension
This commit is contained in:
@@ -8,7 +8,8 @@
|
||||
"ext-soap": "*",
|
||||
"ext-json": "*",
|
||||
"ext-zip": "*",
|
||||
"ext-mysqli": "*"
|
||||
"ext-mysqli": "*",
|
||||
"ext-gd": "*"
|
||||
},
|
||||
"config": {
|
||||
"platform": {
|
||||
|
||||
@@ -89,11 +89,25 @@ class SetupUtils
|
||||
// Check the common directories
|
||||
$aWritableDirsErrors = self::CheckWritableDirs(array('log', 'env-production', 'env-production-build', 'conf', 'data'));
|
||||
$aResult = array_merge($aResult, $aWritableDirsErrors);
|
||||
|
||||
$aMandatoryExtensions = array('mysqli', 'iconv', 'simplexml', 'soap', 'hash', 'json', 'session', 'pcre', 'dom', 'zlib', 'zip');
|
||||
$aOptionalExtensions = array('mcrypt' => 'Strong encryption will not be used.',
|
||||
'ldap' => 'LDAP authentication will be disabled.',
|
||||
'gd' => 'PDF export will be disabled. Also, image resizing will be disabled on profile pictures (May increase database size).');
|
||||
|
||||
$aMandatoryExtensions = array(
|
||||
'mysqli',
|
||||
'iconv',
|
||||
'simplexml',
|
||||
'soap',
|
||||
'hash',
|
||||
'json',
|
||||
'session',
|
||||
'pcre',
|
||||
'dom',
|
||||
'zlib',
|
||||
'zip',
|
||||
'gd', // used to test image type (always returns false if not installed), image resizing, PDF export
|
||||
);
|
||||
$aOptionalExtensions = array(
|
||||
'mcrypt' => 'Strong encryption will not be used.',
|
||||
'ldap' => 'LDAP authentication will be disabled.',
|
||||
);
|
||||
asort($aMandatoryExtensions); // Sort the list to look clean !
|
||||
ksort($aOptionalExtensions); // Sort the list to look clean !
|
||||
$aExtensionsOk = array();
|
||||
|
||||
Reference in New Issue
Block a user