mirror of
https://github.com/friendica/friendica
synced 2025-04-22 19:50:11 +00:00
Centralize config.admin_email management in Model\User
This commit is contained in:
parent
cbe8d463b1
commit
fe547b7851
11 changed files with 134 additions and 134 deletions
|
@ -113,7 +113,7 @@ abstract class BaseUsers extends BaseModeration
|
|||
|
||||
protected function setupUserCallback(): \Closure
|
||||
{
|
||||
$adminlist = explode(',', str_replace(' ', '', DI::config()->get('config', 'admin_email')));
|
||||
$adminlist = User::getAdminEmailList();
|
||||
return function ($user) use ($adminlist) {
|
||||
$page_types = [
|
||||
User::PAGE_FLAGS_NORMAL => $this->t('Normal Account Page'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue