mirror of
https://github.com/friendica/friendica
synced 2025-04-26 01:10:15 +00:00
Replace direct accesses to App->config by Config::get/set calls
This commit is contained in:
parent
d1f2d04803
commit
762a786611
29 changed files with 180 additions and 190 deletions
|
@ -17,10 +17,10 @@ function statistics_json_init(App $a) {
|
|||
}
|
||||
|
||||
$statistics = [
|
||||
"name" => $a->config["sitename"],
|
||||
"name" => Config::get('config', 'sitename'),
|
||||
"network" => FRIENDICA_PLATFORM,
|
||||
"version" => FRIENDICA_VERSION . "-" . DB_UPDATE_VERSION,
|
||||
"registrations_open" => ($a->config['register_policy'] != 0),
|
||||
"registrations_open" => Config::get('config', 'register_policy') !== REGISTER_CLOSED,
|
||||
"total_users" => Config::get('nodeinfo', 'total_users'),
|
||||
"active_users_halfyear" => Config::get('nodeinfo', 'active_users_halfyear'),
|
||||
"active_users_monthly" => Config::get('nodeinfo', 'active_users_monthly'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue