mirror of
https://github.com/friendica/friendica
synced 2025-04-26 09:50: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
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue