]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix pagination links with new URL mapper
authorEvan Prodromou <evan@controlyourself.ca>
Wed, 4 Mar 2009 13:29:21 +0000 (05:29 -0800)
committerEvan Prodromou <evan@controlyourself.ca>
Wed, 4 Mar 2009 13:29:21 +0000 (05:29 -0800)
lib/action.php

index 9c71a153dd98cc124b88bcc0e68d4e1d8990b96f..812df635e31f5b2e31403bbff23e0e44810651e1 100644 (file)
@@ -976,17 +976,17 @@ class Action extends HTMLOutputter // lawsuit
         }
         if ($have_before) {
             $pargs   = array('page' => $page-1);
-            $newargs = $args ? array_merge($args, $pargs) : $pargs;
             $this->elementStart('li', array('class' => 'nav_prev'));
-            $this->element('a', array('href' => common_local_url($action, $newargs), 'rel' => 'prev'),
+            $this->element('a', array('href' => common_local_url($action, $args, $pargs),
+                                      'rel' => 'prev'),
                            _('After'));
             $this->elementEnd('li');
         }
         if ($have_after) {
             $pargs   = array('page' => $page+1);
-            $newargs = $args ? array_merge($args, $pargs) : $pargs;
             $this->elementStart('li', array('class' => 'nav_next'));
-            $this->element('a', array('href' => common_local_url($action, $newargs), 'rel' => 'next'),
+            $this->element('a', array('href' => common_local_url($action, $args, $pargs),
+                                      'rel' => 'next'),
                            _('Before'));
             $this->elementEnd('li');
         }