]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Pagination of user/tag was navigating to wrong page.
authorChristopher Vollick <psycotica0@gmail.com>
Wed, 16 Sep 2009 09:07:33 +0000 (05:07 -0400)
committerChristopher Vollick <psycotica0@gmail.com>
Wed, 16 Sep 2009 09:07:33 +0000 (05:07 -0400)
Fixes bug #1736.

actions/showstream.php

index 4d3067eed37275e35144fc2ecd292e956a0c4954..89285b13c7aae1cd4982ce8f7e411f96bbd84f9f 100644 (file)
@@ -380,8 +380,13 @@ class ShowstreamAction extends ProfileAction
             $this->showEmptyListMessage();
         }
 
+        $args = array('nickname' => $this->user->nickname);
+        if (!empty($this->tag))
+        {
+            $args['tag'] = $this->tag;
+        }
         $this->pagination($this->page>1, $cnt>NOTICES_PER_PAGE, $this->page,
-                          'showstream', array('nickname' => $this->user->nickname));
+                          'showstream', $args);
     }
 
     function showAnonymousMessage()