X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FConfig%2FConfiguration.php;h=18191d0429c45bfd2fb5fc9f860fb71eaca2b008;hb=b9ab6137776f39db3d01481cb6a7d5f6a1634be5;hp=abf6af37ca38e68a3056720f6594cc008bf82f03;hpb=383a6715c3c10a500dd880f0217eb7e013d68b4d;p=friendica.git diff --git a/src/Core/Config/Configuration.php b/src/Core/Config/Configuration.php index abf6af37ca..18191d0429 100644 --- a/src/Core/Config/Configuration.php +++ b/src/Core/Config/Configuration.php @@ -10,16 +10,6 @@ namespace Friendica\Core\Config; */ 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 */ @@ -98,7 +88,7 @@ class Configuration if (isset($dbvalue)) { $this->configCache->set($cat, $key, $dbvalue); - return $dbvalue; + unset($dbvalue); } } @@ -127,7 +117,7 @@ class Configuration $cached = $this->configCache->set($cat, $key, $value); // If there is no connected adapter, we're finished - if (!$this->configAdapter->isConnected() && !empty($this->configSaveBlacklist[$cat][$key])) { + if (!$this->configAdapter->isConnected()) { return $cached; }