]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/all.php
do some commits
[quix0rs-gnu-social.git] / actions / all.php
index 06d88477d5197db74e6f2e752e61b48ed1575cf8..44e3fd2394be28d1ff6dfc1e5edf3b8b71dcf514 100644 (file)
@@ -45,15 +45,8 @@ class AllAction extends StreamAction {
                # Looks like we're good; show the header
 
                common_show_header($profile->nickname . _t(" and friends"),
-                                                  array($this, 'show_header'), $user);
-               
-               $cur = common_current_user();
-               
-               if ($cur && $cur->id == $profile->id) {
-                       common_notice_form();
-               }
-               
-               $this->views_menu();
+                                                  array($this, 'show_header'), $user,
+                                                  array($this, 'show_top'));
                
                $this->show_notices($profile);
                
@@ -68,6 +61,16 @@ class AllAction extends StreamAction {
                                                                         'title' => _t('Feed for friends of ') . $user->nickname));
        }
 
+       function show_top($user) {
+               $cur = common_current_user();
+               
+               if ($cur && $cur->id == $user->id) {
+                       common_notice_form();
+               }
+               
+               $this->views_menu();
+       }
+       
        function show_notices($profile) {
 
                $notice = DB_DataObject::factory('notice');