From 439afc89b6c3b075568ae4f37f1dc62b11ca7b24 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 22 Dec 2018 20:40:00 +0000 Subject: [PATCH] Checks if JSON is enabled --- src/Core/Installer.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Core/Installer.php b/src/Core/Installer.php index b84bcd916e..912406a298 100644 --- a/src/Core/Installer.php +++ b/src/Core/Installer.php @@ -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.'),