This commit is contained in:
Pachira 2015-04-02 16:04:26 +02:00
parent 9701643696
commit f4e5c151f8

View file

@ -17,7 +17,7 @@ $renderData['stats'] = [
'userCount' => ($userCount = count($users = Users::getAllUsers())) .' user'. ($userCount == 1 ? '' : 's'),
'newestUser' => max($users),
'lastRegDate' => ($lastRegDate = date_diff(date_create(date('Y-m-d', max($users)['regdate'])), date_create(date('Y-m-d')))->format('%a')) .' day'. ($lastRegDate == 1 ? '' : 's'),
'chatOnline' => ($chatOnline = 0) .'user'. ($chatOnline == 1 ? '' : 's')
'chatOnline' => ($chatOnline = 0) .' user'. ($chatOnline == 1 ? '' : 's')
];
$renderData['newsPosts'] = Main::getNewsPosts(3);