mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-01 22:30:14 +02:00
lib: Make cURL module requirement optional (#979)
When running in CLI mode without certificates, do not require curl module to be loaded.
This commit is contained in:
@@ -95,7 +95,8 @@ final class Configuration {
|
||||
if(!extension_loaded('simplexml'))
|
||||
die('"simplexml" extension not loaded. Please check "php.ini"');
|
||||
|
||||
if(!extension_loaded('curl'))
|
||||
// Allow RSS-Bridge to run without curl module in CLI mode without root certificates
|
||||
if(!extension_loaded('curl') && !(php_sapi_name() === 'cli' && empty(ini_get('curl.cainfo'))))
|
||||
die('"curl" extension not loaded. Please check "php.ini"');
|
||||
|
||||
if(!extension_loaded('json'))
|
||||
|
Reference in New Issue
Block a user