Remove hostname blacklisting

This commit is contained in:
Philipp Holzer 2019-04-11 00:09:59 +02:00
parent 1dd1684885
commit dc48690ed5
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5

View file

@ -10,16 +10,6 @@ namespace Friendica\Core\Config;
*/ */
class Configuration class Configuration
{ {
/**
* The blacklist of configuration settings, which should not get saved to the backend
* @var array
*/
private $configSaveBlacklist = [
'config' => [
'hostname' => true,
]
];
/** /**
* @var Cache\IConfigCache * @var Cache\IConfigCache
*/ */
@ -127,7 +117,7 @@ class Configuration
$cached = $this->configCache->set($cat, $key, $value); $cached = $this->configCache->set($cat, $key, $value);
// If there is no connected adapter, we're finished // If there is no connected adapter, we're finished
if (!$this->configAdapter->isConnected() || !empty($this->configSaveBlacklist[$cat][$key])) { if (!$this->configAdapter->isConnected()) {
return $cached; return $cached;
} }