* Do the query before requesting navigation
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Mon, 27 Apr 2009 13:37:35 +0000 (13:37 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Mon, 27 Apr 2009 13:37:35 +0000 (13:37 +0000)
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();