Add extension check for the "json" extension.
This commit is contained in:
parent
16c0a61232
commit
be3620acb7
1 changed files with 3 additions and 0 deletions
|
@ -27,6 +27,9 @@ class Configuration {
|
||||||
if(!extension_loaded('curl'))
|
if(!extension_loaded('curl'))
|
||||||
die('"curl" extension not loaded. Please check "php.ini"');
|
die('"curl" extension not loaded. Please check "php.ini"');
|
||||||
|
|
||||||
|
if(!extension_loaded('json'))
|
||||||
|
die('"json" extension not loaded. Please check "php.ini"');
|
||||||
|
|
||||||
// Check cache folder permissions (write permissions required)
|
// Check cache folder permissions (write permissions required)
|
||||||
if(!is_writable(CACHE_DIR))
|
if(!is_writable(CACHE_DIR))
|
||||||
die('RSS-Bridge does not have write permissions for ' . CACHE_DIR . '!');
|
die('RSS-Bridge does not have write permissions for ' . CACHE_DIR . '!');
|
||||||
|
|
Loading…
Reference in a new issue