]> git.mxchange.org Git - friendica.git/commitdiff
admin: fix last item date in users list, fix plugins details template
authorfabrixxm <fabrix.xm@gmail.com>
Sat, 18 Jun 2011 06:52:51 +0000 (08:52 +0200)
committerfabrixxm <fabrix.xm@gmail.com>
Sat, 18 Jun 2011 06:52:51 +0000 (08:52 +0200)
mod/admin.php
view/admin_plugins_details.tpl

index 3b5315ad59743d7c12fae84d4772dc868ee734b2..1ae0490e8daa8ccaba7946c13ff3655a8c47b591 100644 (file)
@@ -408,12 +408,12 @@ function admin_page_users(&$a){
                $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 (
-                                       SELECT `item`.`changed` , `item`.`uid`
+                                       SELECT MAX(`item`.`changed`) as `lastitem_date`, `item`.`uid`
                                        FROM `item`
-                                       GROUP BY `uid`
-                                       ORDER BY `item`.`changed`
+                                       WHERE `item`.`type` = 'wall'
+                                       GROUP BY `item`.`uid`
                                ) AS `lastitem` , `user`
                                LEFT JOIN `contact` ON `user`.`uid` = `contact`.`uid`
                                WHERE `user`.`verified` =1
@@ -534,6 +534,7 @@ function admin_page_plugins(&$a){
                        '$title' => t('Administration'),
                        '$page' => t('Plugins'),
                        '$toggle' => t('Toggle'),
+                       '$settings' => t('Settings'),
                        '$baseurl' => $a->get_baseurl(),
                
                        '$plugin' => $plugin,
index 4bce1dda2bc7612d0186375c9a71fc15b8d75f24..f3c0685f59b3f3a1f118ca79b79bf91258f382b6 100644 (file)
@@ -12,7 +12,7 @@
        
 
        {{ if $admin_form }}
-       <h3>Settings</h3>
+       <h3>$settings</h3>
        <form method="post" action="$baseurl/admin/plugins/$plugin/">
                $admin_form
        </form>