Replace direct accesses to App->config by Config::get/set calls

This commit is contained in:
Hypolite Petovan 2018-07-07 17:46:30 -04:00
parent d1f2d04803
commit 762a786611
29 changed files with 180 additions and 190 deletions

View file

@ -11,7 +11,7 @@ use Friendica\Core\UserImport;
function uimport_post(App $a)
{
switch ($a->config['register_policy']) {
switch (Config::get('config', 'register_policy')) {
case REGISTER_OPEN:
$blocked = 0;
$verified = 1;
@ -42,7 +42,7 @@ function uimport_post(App $a)
function uimport_content(App $a) {
if ((!local_user()) && ($a->config['register_policy'] == REGISTER_CLOSED)) {
if ((!local_user()) && (Config::get('config', 'register_policy') === REGISTER_CLOSED)) {
notice("Permission denied." . EOL);
return;
}