* Remove code duplication
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 20 Jun 2009 08:59:36 +0000 (08:59 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 20 Jun 2009 08:59:36 +0000 (08:59 +0000)
includes/CategoryPage.php

index 83e378d..be0b4e0 100644 (file)
@@ -263,17 +263,11 @@ class CategoryViewer {
                                $this->addPage( $title, $x->cl_sortkey, $x->page_len, $x->page_is_redirect );
                        }
                }
-               $dbr->freeResult( $res );
        }
 
        function getCategoryTop() {
-               $r = '';
-               if( $this->until != '' ) {
-                       $r .= $this->pagingLinks( $this->title, $this->nextPage, $this->until, $this->limit );
-               } elseif( $this->nextPage != '' || $this->from != '' ) {
-                       $r .= $this->pagingLinks( $this->title, $this->from, $this->nextPage, $this->limit );
-               }
-               return $r == ''
+               $r = $this->getCategoryBottom();
+               return $r === ''
                        ? $r
                        : "<br style=\"clear:both;\"/>\n" . $r;
        }