mirror of
https://github.com/friendica/friendica
synced 2025-04-26 18:30:11 +00:00
Move "User::allow()" to own method and update usages
This commit is contained in:
parent
f3f764bc39
commit
6aee153bbd
7 changed files with 197 additions and 194 deletions
|
@ -28,7 +28,6 @@ use Friendica\DI;
|
|||
use Friendica\Model\Register;
|
||||
use Friendica\Model\User;
|
||||
use Friendica\Module\BaseAdmin;
|
||||
use Friendica\Util\Strings;
|
||||
use Friendica\Util\Temporal;
|
||||
|
||||
class Users extends BaseAdmin
|
||||
|
@ -82,7 +81,7 @@ class Users extends BaseAdmin
|
|||
if (!empty($_POST['page_users_approve'])) {
|
||||
require_once 'mod/regmod.php';
|
||||
foreach ($pending as $hash) {
|
||||
user_allow($hash);
|
||||
User::allow($hash);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue