Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fusiondirectory
fusiondirectory
Commits
047eb647
Commit
047eb647
authored
Dec 07, 2016
by
Côme Chilliet
Browse files
Fixes
#5260
Check for json support during setup
parent
fbb35420
Changes
1
Hide whitespace changes
Inline
Side-by-side
setup/class_setupStep_Checks.inc
View file @
047eb647
...
...
@@ -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."
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment