mirror of
https://github.com/friendica/friendica
synced 2024-11-11 13:42:54 +00:00
2) Refactor App->config[] into Core\PConfig
This commit is contained in:
parent
d43a8184f4
commit
f40c57fc20
2 changed files with 6 additions and 2 deletions
|
@ -28,7 +28,7 @@ class JITPConfigAdapter implements IPConfigAdapter
|
||||||
}
|
}
|
||||||
} else if ($cat != 'config') {
|
} else if ($cat != 'config') {
|
||||||
// Negative caching
|
// Negative caching
|
||||||
PConfig::setPConfigValue($uid, $cat, "!<unset>!");
|
PConfig::setPConfigValue($uid, $cat, null, "!<unset>!");
|
||||||
}
|
}
|
||||||
DBA::close($pconfigs);
|
DBA::close($pconfigs);
|
||||||
}
|
}
|
||||||
|
|
|
@ -203,7 +203,11 @@ class PConfig extends BaseObject
|
||||||
self::$config[$uid][$cat] = [];
|
self::$config[$uid][$cat] = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
self::$config[$uid][$cat][$k] = $value;
|
if ($k === null) {
|
||||||
|
self::$config[$uid][$cat] = $value;
|
||||||
|
} else {
|
||||||
|
self::$config[$uid][$cat][$k] = $value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue