Commit 047eb647 authored by Côme Chilliet's avatar Côme Chilliet

Fixes #5260 Check for json support during setup

parent fbb35420
......@@ -95,6 +95,14 @@ class Step_Checks extends setupStep
$M = TRUE;
$basic_checks[] = array('NAME' => $N , 'DESC' => $D , 'RESULT' => $R , 'SOLUTION' => $S , 'MUST' => $M );
/* Check for json support */
$N = msgPool::checkingFor('json');
$D = _('FusionDirectory requires this module to encode variables for javascript use.');
$S = msgPool::installPhpModule('json');
$R = is_callable('json_encode');
$M = TRUE;
$basic_checks[] = array('NAME' => $N , 'DESC' => $D , 'RESULT' => $R , 'SOLUTION' => $S , 'MUST' => $M );
/* Check for iconv */
$N = msgPool::checkingFor("iconv");
$D = _("FusionDirectory requires this module for the samba integration.");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment