@@ 4714-4719 (lines=6) @@ | ||
4711 | ||
4712 | # Make 'previous' link |
|
4713 | $prev = wfMessage( 'prevn' )->inLanguage( $this )->title( $title )->numParams( $limit )->text(); |
|
4714 | if ( $offset > 0 ) { |
|
4715 | $plink = $this->numLink( $title, max( $offset - $limit, 0 ), $limit, |
|
4716 | $query, $prev, 'prevn-title', 'mw-prevlink' ); |
|
4717 | } else { |
|
4718 | $plink = htmlspecialchars( $prev ); |
|
4719 | } |
|
4720 | ||
4721 | # Make 'next' link |
|
4722 | $next = wfMessage( 'nextn' )->inLanguage( $this )->title( $title )->numParams( $limit )->text(); |
|
@@ 4723-4728 (lines=6) @@ | ||
4720 | ||
4721 | # Make 'next' link |
|
4722 | $next = wfMessage( 'nextn' )->inLanguage( $this )->title( $title )->numParams( $limit )->text(); |
|
4723 | if ( $atend ) { |
|
4724 | $nlink = htmlspecialchars( $next ); |
|
4725 | } else { |
|
4726 | $nlink = $this->numLink( $title, $offset + $limit, $limit, |
|
4727 | $query, $next, 'nextn-title', 'mw-nextlink' ); |
|
4728 | } |
|
4729 | ||
4730 | # Make links to set number of items per page |
|
4731 | $numLinks = []; |