projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecd0fd6
)
Added check for the JSON extension
author
Marcel Werk
<burntime@woltlab.com>
Thu, 30 May 2013 20:37:35 +0000
(22:37 +0200)
committer
Marcel Werk
<burntime@woltlab.com>
Thu, 30 May 2013 20:37:35 +0000
(22:37 +0200)
wcfsetup/test.php
patch
|
blob
|
blame
|
history
diff --git
a/wcfsetup/test.php
b/wcfsetup/test.php
index 7095b7b7cfdf3bc5b82675b77e151a5876bbfd9d..12f24bbcc1969dd61837d842d46bb4767913559c 100644
(file)
--- a/
wcfsetup/test.php
+++ b/
wcfsetup/test.php
@@
-78,6
+78,14
@@
else if (!extension_loaded('pdo_mysql')) {
<?php
}
+// check JSON extension
+else if (!extension_loaded('json')) {
+ ?>
+ <p>The 'JSON' PHP extension is missing. JSON is required for a stable work of this software.<br />
+ Die 'JSON' Erweiterung für PHP wurde nicht gefunden. Diese Erweiterung ist für den Betrieb der Software notwendig.</p>
+ <?php
+}
+
// check safemode
else if ((is_array($configArray) && !empty($configArray['safe_mode']['local_value'])) || @ini_get('safe_mode')) {
?>