sforkowany z mirror/friendica
Fixing permanent deletion counter
rodzic
e64a14b84b
commit
14b4fac818
|
@ -1977,7 +1977,7 @@ function admin_page_users(App $a)
|
||||||
|
|
||||||
'$h_users' => L10n::t('Users'),
|
'$h_users' => L10n::t('Users'),
|
||||||
'$h_newuser' => L10n::t('New User'),
|
'$h_newuser' => L10n::t('New User'),
|
||||||
'$th_deleted' => [L10n::t('Name'), L10n::t('Email'), L10n::t('Register date'), L10n::t('Last login'), L10n::t('Last item'), L10n::t('Delete in')],
|
'$th_deleted' => [L10n::t('Name'), L10n::t('Email'), L10n::t('Register date'), L10n::t('Last login'), L10n::t('Last item'), L10n::t('Permanet deletion')],
|
||||||
'$th_users' => $th_users,
|
'$th_users' => $th_users,
|
||||||
'$order_users' => $order,
|
'$order_users' => $order,
|
||||||
'$order_direction_users' => $order_direction,
|
'$order_direction_users' => $order_direction,
|
||||||
|
|
|
@ -119,7 +119,7 @@ class CronJobs
|
||||||
}
|
}
|
||||||
|
|
||||||
// delete user records for recently removed accounts
|
// delete user records for recently removed accounts
|
||||||
$users = DBA::select('user', ['uid'], ["`account_removed` AND `account_expires_on` < UTC_TIMESTAMP() - INTERVAL 3 DAY"]);
|
$users = DBA::select('user', ['uid'], ["`account_removed` AND `account_expires_on` < UTC_TIMESTAMP() "]);
|
||||||
while ($user = DBA::fetch($users)) {
|
while ($user = DBA::fetch($users)) {
|
||||||
// Delete the contacts of this user
|
// Delete the contacts of this user
|
||||||
$self = DBA::selectFirst('contact', ['nurl'], ['self' => true, 'uid' => $user['uid']]);
|
$self = DBA::selectFirst('contact', ['nurl'], ['self' => true, 'uid' => $user['uid']]);
|
||||||
|
|
Ładowanie…
Reference in New Issue