Преглед на файлове

fix: regression with updating read-only config

Signed-off-by: Sam Bull <git@sambull.org>
pull/44039/head
Sam Bull преди 2 месеца
родител
ревизия
b6ade7c8e4
променени са 1 файла, в които са добавени 0 реда и са изтрити 4 реда
  1. 0
    4
      lib/private/Config.php

+ 0
- 4
lib/private/Config.php Целия файл

@@ -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]);

Loading…
Отказ
Запис