mirror of
https://github.com/friendica/friendica
synced 2025-04-27 16:30:10 +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
|
@ -2,6 +2,7 @@
|
|||
/**
|
||||
* @file mod/regmod.php
|
||||
*/
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
|
@ -57,7 +58,7 @@ function user_allow($hash)
|
|||
|
||||
$res = User::sendRegisterOpenEmail(
|
||||
$user[0]['email'],
|
||||
$a->config['sitename'],
|
||||
Config::get('config', 'sitename'),
|
||||
System::baseUrl(),
|
||||
$user[0]['username'],
|
||||
$register[0]['password']);
|
||||
|
@ -100,7 +101,7 @@ function regmod_content(App $a)
|
|||
|
||||
if (!local_user()) {
|
||||
info(L10n::t('Please login.') . EOL);
|
||||
$o = '<br /><br />' . Login::form($a->query_string, $a->config['register_policy'] == REGISTER_CLOSED ? 0 : 1);
|
||||
$o = '<br /><br />' . Login::form($a->query_string, Config::get('config', 'register_policy') === REGISTER_CLOSED ? 0 : 1);
|
||||
return $o;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue