sforkowany z mirror/friendica
2) Refactor App->config[] into Core\PConfig
rodzic
d43a8184f4
commit
f40c57fc20
|
@ -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,8 +203,12 @@ class PConfig extends BaseObject
|
||||||
self::$config[$uid][$cat] = [];
|
self::$config[$uid][$cat] = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($k === null) {
|
||||||
|
self::$config[$uid][$cat] = $value;
|
||||||
|
} else {
|
||||||
self::$config[$uid][$cat][$k] = $value;
|
self::$config[$uid][$cat][$k] = $value;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes a value from the user config cache
|
* Deletes a value from the user config cache
|
||||||
|
|
Ładowanie…
Reference in New Issue