Index: trunk/phase3/languages/Language.php |
— | — | @@ -2742,7 +2742,7 @@ |
2743 | 2743 | if ( intval( $_ ) < 0 ) { |
2744 | 2744 | // For negative numbers apply the algorithm like positive number and add sign. |
2745 | 2745 | $sign = "-"; |
2746 | | - $_ = substr( $_,1 ); |
| 2746 | + $_ = substr( $_, 1 ); |
2747 | 2747 | } |
2748 | 2748 | $numberpart = array(); |
2749 | 2749 | $decimalpart = array(); |
— | — | @@ -3902,7 +3902,7 @@ |
3903 | 3903 | |
3904 | 3904 | # Make 'previous' link |
3905 | 3905 | $prev = wfMessage( 'prevn' )->inLanguage( $this )->title( $title )->numParams( $limit )->text(); |
3906 | | - if( $offset > 0 ) { |
| 3906 | + if ( $offset > 0 ) { |
3907 | 3907 | $plink = $this->numLink( $title, max( $offset - $limit, 0 ), $limit, |
3908 | 3908 | $query, $prev, 'prevn-title', 'mw-prevlink' ); |
3909 | 3909 | } else { |
— | — | @@ -3911,7 +3911,7 @@ |
3912 | 3912 | |
3913 | 3913 | # Make 'next' link |
3914 | 3914 | $next = wfMessage( 'nextn' )->inLanguage( $this )->title( $title )->numParams( $limit )->text(); |
3915 | | - if( $atend ) { |
| 3915 | + if ( $atend ) { |
3916 | 3916 | $nlink = htmlspecialchars( $next ); |
3917 | 3917 | } else { |
3918 | 3918 | $nlink = $this->numLink( $title, $offset + $limit, $limit, |
— | — | @@ -3920,7 +3920,7 @@ |
3921 | 3921 | |
3922 | 3922 | # Make links to set number of items per page |
3923 | 3923 | $numLinks = array(); |
3924 | | - foreach( array( 20, 50, 100, 250, 500 ) as $num ) { |
| 3924 | + foreach ( array( 20, 50, 100, 250, 500 ) as $num ) { |
3925 | 3925 | $numLinks[] = $this->numLink( $title, $offset, $num, |
3926 | 3926 | $query, $this->formatNum( $num ), 'shown-title', 'mw-numlink' ); |
3927 | 3927 | } |