sforkowany z mirror/friendica
2) Refactor App->config[] into Core\PConfig
rodzic
f40c57fc20
commit
5c50684b50
|
@ -162,7 +162,7 @@ class Config extends BaseObject
|
||||||
* @param array $config
|
* @param array $config
|
||||||
* @param bool $overwrite Force value overwrite if the config key already exists
|
* @param bool $overwrite Force value overwrite if the config key already exists
|
||||||
*/
|
*/
|
||||||
public function loadConfigArray(array $config, $overwrite = false)
|
public static function loadConfigArray(array $config, $overwrite = false)
|
||||||
{
|
{
|
||||||
foreach ($config as $category => $values) {
|
foreach ($config as $category => $values) {
|
||||||
foreach ($values as $key => $value) {
|
foreach ($values as $key => $value) {
|
||||||
|
|
Ładowanie…
Reference in New Issue