mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
Add extension check for the "json" extension.
This commit is contained in:
parent
16c0a61232
commit
be3620acb7
@ -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 New Issue
Block a user