r70419 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70418‎ | r70419 | r70420 >
Date:20:50, 3 August 2010
Author:simetrical
Status:ok
Tags:
Comment:
Don't duplicate the "title" query parameter

Kind of hacky to just unset this one parameter, but it's what Pager.php
does.
Modified paths:
  • /trunk/phase3/includes/CategoryPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/CategoryPage.php
@@ -86,6 +86,7 @@
8787 $this->limit = $wgCategoryPagingLimit;
8888 $this->cat = Category::newFromTitle( $title );
8989 $this->query = $query;
 90+ unset( $this->query['title'] );
9091 }
9192
9293 /**

Status & tagging log