admin: fix last item date in users list, fix plugins details template

This commit is contained in:
fabrixxm 2011-06-18 08:52:51 +02:00
parent 23931ab719
commit 4b633d54bb
2 changed files with 6 additions and 5 deletions

View file

@ -408,12 +408,12 @@ function admin_page_users(&$a){
$a->set_pager_itemspage(100); $a->set_pager_itemspage(100);
} }
$users = q("SELECT `user` . * , `contact`.`name` , `contact`.`url` , `contact`.`micro` , `lastitem`.`changed` AS `lastitem_date` $users = q("SELECT `user` . * , `contact`.`name` , `contact`.`url` , `contact`.`micro` , `lastitem`.`lastitem_date`
FROM ( FROM (
SELECT `item`.`changed` , `item`.`uid` SELECT MAX(`item`.`changed`) as `lastitem_date`, `item`.`uid`
FROM `item` FROM `item`
GROUP BY `uid` WHERE `item`.`type` = 'wall'
ORDER BY `item`.`changed` GROUP BY `item`.`uid`
) AS `lastitem` , `user` ) AS `lastitem` , `user`
LEFT JOIN `contact` ON `user`.`uid` = `contact`.`uid` LEFT JOIN `contact` ON `user`.`uid` = `contact`.`uid`
WHERE `user`.`verified` =1 WHERE `user`.`verified` =1
@ -534,6 +534,7 @@ function admin_page_plugins(&$a){
'$title' => t('Administration'), '$title' => t('Administration'),
'$page' => t('Plugins'), '$page' => t('Plugins'),
'$toggle' => t('Toggle'), '$toggle' => t('Toggle'),
'$settings' => t('Settings'),
'$baseurl' => $a->get_baseurl(), '$baseurl' => $a->get_baseurl(),
'$plugin' => $plugin, '$plugin' => $plugin,

View file

@ -12,7 +12,7 @@
{{ if $admin_form }} {{ if $admin_form }}
<h3>Settings</h3> <h3>$settings</h3>
<form method="post" action="$baseurl/admin/plugins/$plugin/"> <form method="post" action="$baseurl/admin/plugins/$plugin/">
$admin_form $admin_form
</form> </form>