mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 08:37:30 +02:00
Do not use constants for configuration (#2938)
* docs: Do not use constant names when referring to config options The options are customizable using a config file and no longer hardcoded in index.php since8ac8e08abf
* Do not use constants for configuration Since <8ac8e08abf
>, they are just set to the configuration object values.
This commit is contained in:
@@ -79,8 +79,8 @@ function getContents(
|
||||
'headers' => $httpHeaders,
|
||||
'curl_options' => $curlOptions,
|
||||
];
|
||||
if (defined('PROXY_URL') && !defined('NOPROXY')) {
|
||||
$config['proxy'] = PROXY_URL;
|
||||
if (Configuration::getConfig('proxy', 'url') && !defined('NOPROXY')) {
|
||||
$config['proxy'] = Configuration::getConfig('proxy', 'url');
|
||||
}
|
||||
if (!Debug::isEnabled() && $cache->getTime()) {
|
||||
$config['if_not_modified_since'] = $cache->getTime();
|
||||
|
Reference in New Issue
Block a user