r108001 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108000‎ | r108001 | r108002 >
Date:09:06, 4 January 2012
Author:santhosh
Status:ok
Tags:
Comment:
Stylize.
Modified paths:
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/Language.php
@@ -2742,7 +2742,7 @@
27432743 if ( intval( $_ ) < 0 ) {
27442744 // For negative numbers apply the algorithm like positive number and add sign.
27452745 $sign = "-";
2746 - $_ = substr( $_,1 );
 2746+ $_ = substr( $_, 1 );
27472747 }
27482748 $numberpart = array();
27492749 $decimalpart = array();
@@ -3902,7 +3902,7 @@
39033903
39043904 # Make 'previous' link
39053905 $prev = wfMessage( 'prevn' )->inLanguage( $this )->title( $title )->numParams( $limit )->text();
3906 - if( $offset > 0 ) {
 3906+ if ( $offset > 0 ) {
39073907 $plink = $this->numLink( $title, max( $offset - $limit, 0 ), $limit,
39083908 $query, $prev, 'prevn-title', 'mw-prevlink' );
39093909 } else {
@@ -3911,7 +3911,7 @@
39123912
39133913 # Make 'next' link
39143914 $next = wfMessage( 'nextn' )->inLanguage( $this )->title( $title )->numParams( $limit )->text();
3915 - if( $atend ) {
 3915+ if ( $atend ) {
39163916 $nlink = htmlspecialchars( $next );
39173917 } else {
39183918 $nlink = $this->numLink( $title, $offset + $limit, $limit,
@@ -3920,7 +3920,7 @@
39213921
39223922 # Make links to set number of items per page
39233923 $numLinks = array();
3924 - foreach( array( 20, 50, 100, 250, 500 ) as $num ) {
 3924+ foreach ( array( 20, 50, 100, 250, 500 ) as $num ) {
39253925 $numLinks[] = $this->numLink( $title, $offset, $num,
39263926 $query, $this->formatNum( $num ), 'shown-title', 'mw-numlink' );
39273927 }

Sign-offs

UserFlagDate
Nikerabbitinspected11:00, 4 January 2012

Status & tagging log