]> git.mxchange.org Git - friendica.git/commitdiff
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 b84bcd916efc4574c2effbd767890cf0deaf901b..912406a29822de51508c1a9c6570d9aaebd95cab 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.'),