Checks if JSON is enabled

This commit is contained in:
Michael 2018-12-22 20:40:00 +00:00
parent 6f8c9a08a1
commit 439afc89b6

View File

@ -405,6 +405,13 @@ class Installer
); );
$returnVal = $returnVal ? $status : false; $returnVal = $returnVal ? $status : false;
$status = $this->checkFunction('json_encode',
L10n::t('JSON PHP module'),
L10n::t('Error: JSON PHP module required but not installed.'),
true
);
$returnVal = $returnVal ? $status : false;
$status = $this->checkFunction('imagecreatefromjpeg', $status = $this->checkFunction('imagecreatefromjpeg',
L10n::t('GD graphics PHP module'), L10n::t('GD graphics PHP module'),
L10n::t('Error: GD graphics PHP module with JPEG support required but not installed.'), L10n::t('Error: GD graphics PHP module with JPEG support required but not installed.'),