瀏覽代碼

fix: regression with updating read-only config

Signed-off-by: Sam Bull <git@sambull.org>
undefined
Sam Bull 3 月之前
父節點
當前提交
37b517f3ab
共有 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…
取消
儲存