Bläddra i källkod

fix: regression with updating read-only config

Signed-off-by: Sam Bull <git@sambull.org>
pull/44039/head
Sam Bull 2 månader sedan
förälder
incheckning
b6ade7c8e4
1 ändrade filer med 0 tillägg och 4 borttagningar
  1. 0
    4
      lib/private/Config.php

+ 0
- 4
lib/private/Config.php Visa fil

@@ -153,8 +153,6 @@ class Config {
* @throws HintException
*/
protected function set($key, $value) {
$this->checkReadOnly();

if (!isset($this->cache[$key]) || $this->cache[$key] !== $value) {
// Add change
$this->cache[$key] = $value;
@@ -185,8 +183,6 @@ class Config {
* @throws HintException
*/
protected function delete($key) {
$this->checkReadOnly();

if (isset($this->cache[$key])) {
// Delete key from cache
unset($this->cache[$key]);

Laddar…
Avbryt
Spara