diff --git a/mod/admin.php b/mod/admin.php index fb333c3e5c..ecca0b8be3 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -694,7 +694,7 @@ function admin_page_users(&$a){ } - $users = q("SELECT `user` . * , `contact`.`name` , `contact`.`url` , `contact`.`micro`, `lastitem`.`lastitem_date` + $users = q("SELECT `user` . * , `contact`.`name` , `contact`.`url` , `contact`.`micro`, `lastitem`.`lastitem_date`, `user`.`account_expired` FROM (SELECT MAX(`item`.`changed`) as `lastitem_date`, `item`.`uid` FROM `item` @@ -718,7 +718,7 @@ function admin_page_users(&$a){ t('Normal Account'), t('Soapbox Account'), t('Community/Celebrity Account'), - t('Automatic Friend Account') + t('Automatic Friend Account') ); $e['page-flags'] = $accounts[$e['page-flags']]; $e['register_date'] = relative_date($e['register_date']); @@ -756,6 +756,7 @@ function admin_page_users(&$a){ '$block' => t('Block'), '$unblock' => t('Unblock'), '$siteadmin' => t('Site admin'), + '$accountexpired' => t('Account expired'), '$h_users' => t('Users'), '$th_users' => array( t('Name'), t('Email'), t('Register date'), t('Last login'), t('Last item'), t('Account') ), diff --git a/view/admin_users.tpl b/view/admin_users.tpl index 781d538bb7..d9a96d7df7 100644 --- a/view/admin_users.tpl +++ b/view/admin_users.tpl @@ -70,7 +70,7 @@ $u.register_date $u.login_date $u.lastitem_date - $u.page_flags {{ if $u.is_admin }}($siteadmin){{ endif }} + $u.page_flags {{ if $u.is_admin }}($siteadmin){{ endif }} {{ if $u.account_expired }}($accountexpired){{ endif }} {{ if $u.is_admin }}   diff --git a/view/smarty3/admin_users.tpl b/view/smarty3/admin_users.tpl index 7ecef1a56c..e3fc14ac3b 100644 --- a/view/smarty3/admin_users.tpl +++ b/view/smarty3/admin_users.tpl @@ -75,7 +75,7 @@ {{$u.register_date}} {{$u.login_date}} {{$u.lastitem_date}} - {{$u.page_flags}} {{if $u.is_admin}}({{$siteadmin}}){{/if}} + {{$u.page_flags}} {{if $u.is_admin}}({{$siteadmin}}){{/if}} {{if $u.accountexpired}}{{$account_expired}}{{/if}} {{if $u.is_admin}}