Follow up r49996, changing pathrev to revision on non-trunk preventing the 404 error.
[lhc/web/wiklou.git] / includes / specials / SpecialCategories.php
index c6e73f2..eefe8e1 100644 (file)
@@ -13,6 +13,7 @@ function wfSpecialCategories( $par=null ) {
                $from = $par;
        }
        $cap = new CategoryPager( $from );
+       $cap->doQuery();
        $wgOut->addHTML(
                XML::openElement( 'div', array('class' => 'mw-spcontent') ) .
                wfMsgExt( 'categoriespagetext', array( 'parse' ) ) .
@@ -74,9 +75,6 @@ class CategoryPager extends AlphabeticPager {
 
        /* Override getBody to apply LinksBatch on resultset before actually outputting anything. */
        public function getBody() {
-               if (!$this->mQueryDone) {
-                       $this->doQuery();
-               }
                $batch = new LinkBatch;
 
                $this->mResult->rewind();