r43430 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43429‎ | r43430 | r43431 >
Date:00:35, 13 November 2008
Author:tparscal
Status:old
Tags:
Comment:
Made paging links follow language.
Modified paths:
  • /trunk/extensions/ContributionReporting/ContributionHistory_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ContributionReporting/ContributionHistory_body.php
@@ -41,11 +41,13 @@
4242 $prevOffset = max( $offset - $limit , 0 );
4343 $nextOffset = min( $offset + $limit, max( $count - $limit, 0 ) );
4444
 45+ $title = Title::newFromText( $wgTitle->getPrefixedText() . ( $language == 'en' ? '' : '/' . $language ) );
 46+
4547 $pagingLinks = array();
4648 if( $prevOffset < $offset ) {
4749 $pagingLinks[] = Xml::element( 'a',
4850 array(
49 - 'href' => $wgTitle->getFullURL( 'offset=' . $prevOffset ),
 51+ 'href' => $title->getFullURL( 'offset=' . $prevOffset ),
5052 ),
5153 wfMsg( 'contrib-hist-previous' )
5254 );
@@ -53,7 +55,7 @@
5456 if( $nextOffset > 0 ) {
5557 $pagingLinks[] = Xml::element( 'a',
5658 array(
57 - 'href' => $wgTitle->getFullURL( 'offset=' . $nextOffset ),
 59+ 'href' => $title->getFullURL( 'offset=' . $nextOffset ),
5860 ),
5961 wfMsg( 'contrib-hist-next' )
6062 );

Status & tagging log