Index: trunk/extensions/ContributionReporting/ContributionHistory_body.php |
— | — | @@ -41,11 +41,13 @@ |
42 | 42 | $prevOffset = max( $offset - $limit , 0 ); |
43 | 43 | $nextOffset = min( $offset + $limit, max( $count - $limit, 0 ) ); |
44 | 44 | |
| 45 | + $title = Title::newFromText( $wgTitle->getPrefixedText() . ( $language == 'en' ? '' : '/' . $language ) ); |
| 46 | + |
45 | 47 | $pagingLinks = array(); |
46 | 48 | if( $prevOffset < $offset ) { |
47 | 49 | $pagingLinks[] = Xml::element( 'a', |
48 | 50 | array( |
49 | | - 'href' => $wgTitle->getFullURL( 'offset=' . $prevOffset ), |
| 51 | + 'href' => $title->getFullURL( 'offset=' . $prevOffset ), |
50 | 52 | ), |
51 | 53 | wfMsg( 'contrib-hist-previous' ) |
52 | 54 | ); |
— | — | @@ -53,7 +55,7 @@ |
54 | 56 | if( $nextOffset > 0 ) { |
55 | 57 | $pagingLinks[] = Xml::element( 'a', |
56 | 58 | array( |
57 | | - 'href' => $wgTitle->getFullURL( 'offset=' . $nextOffset ), |
| 59 | + 'href' => $title->getFullURL( 'offset=' . $nextOffset ), |
58 | 60 | ), |
59 | 61 | wfMsg( 'contrib-hist-next' ) |
60 | 62 | ); |