Checks if JSON is enabled
authorMichael <heluecht@pirati.ca>
Sat, 22 Dec 2018 20:40:00 +0000 (20:40 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 22 Dec 2018 20:40:00 +0000 (20:40 +0000)
src/Core/Installer.php

index b84bcd9..912406a 100644 (file)
@@ -405,6 +405,13 @@ class Installer
                );
                $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',
                        L10n::t('GD graphics PHP module'),
                        L10n::t('Error: GD graphics PHP module with JPEG support required but not installed.'),