r50404 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50403‎ | r50404 | r50405 >
Date:23:03, 9 May 2009
Author:siebrand
Status:ok
Tags:
Comment:
Follow-up on r50351. Fix adding key/value pair.
Modified paths:
  • /trunk/phase3/includes/CategoryPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/CategoryPage.php
@@ -452,7 +452,7 @@
453453
454454 $prevLink = wfMsgExt( 'prevn', array( 'escape', 'parsemag' ), $limitText );
455455 if( $first != '' ) {
456 - $query[] = array( 'until' => $first );
 456+ $query['until'] = $first;
457457 $prevLink = $sk->link(
458458 $title,
459459 $prevLink,
@@ -462,7 +462,7 @@
463463 }
464464 $nextLink = wfMsgExt( 'nextn', array( 'escape', 'parsemag' ), $limitText );
465465 if( $last != '' ) {
466 - $query[] = array( 'from' => $last );
 466+ $query['from'] = $last;
467467 $nextLink = $sk->link(
468468 $title,
469469 $nextLink,

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r50351Use link() instead of deprecated makeLinkObj() where possible.siebrand23:24, 8 May 2009

Status & tagging log