1
0
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 since 8ac8e08abf

* Do not use constants for configuration

Since <8ac8e08abf>, they are just set to the configuration object values.
This commit is contained in:
Jan Tojnar
2022-07-24 19:26:12 +02:00
committed by GitHub
parent 499d5c2b77
commit 5b5f3b4254
7 changed files with 15 additions and 23 deletions

View File

@@ -324,9 +324,9 @@ This bridge is not fetching its content through a secure connection</div>';
$donationsAllowed = Configuration::getConfig('admin', 'donations');
if (defined('PROXY_URL') && PROXY_BYBRIDGE) {
if (Configuration::getConfig('proxy', 'url') && Configuration::getConfig('proxy', 'by_bridge')) {
$parameters['global']['_noproxy'] = [
'name' => 'Disable proxy (' . ((defined('PROXY_NAME') && PROXY_NAME) ? PROXY_NAME : PROXY_URL) . ')',
'name' => 'Disable proxy (' . (Configuration::getConfig('proxy', 'name') ?: Configuration::getConfig('proxy', 'url')) . ')',
'type' => 'checkbox'
];
}