Add extension check for the "json" extension.

This commit is contained in:
Quentin Delmas 2018-08-22 16:21:20 +01:00
parent 16c0a61232
commit be3620acb7

View file

@ -27,6 +27,9 @@ class Configuration {
if(!extension_loaded('curl'))
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)
if(!is_writable(CACHE_DIR))
die('RSS-Bridge does not have write permissions for ' . CACHE_DIR . '!');