Don't duplicate the "title" query parameter
authorAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 3 Aug 2010 20:50:52 +0000 (20:50 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 3 Aug 2010 20:50:52 +0000 (20:50 +0000)
Kind of hacky to just unset this one parameter, but it's what Pager.php
does.

includes/CategoryPage.php

index 9dee972..28f8a38 100644 (file)
@@ -86,6 +86,7 @@ class CategoryViewer {
                $this->limit = $wgCategoryPagingLimit;
                $this->cat = Category::newFromTitle( $title );
                $this->query = $query;
+               unset( $this->query['title'] );
        }
 
        /**