Index: trunk/phase3/includes/ChangesList.php |
— | — | @@ -193,10 +193,10 @@ |
194 | 194 | $fastCharDiff[$code] = $wgMiserMode || wfMsgNoTrans( 'rc-change-size' ) === '$1'; |
195 | 195 | } |
196 | 196 | |
197 | | - $formatedSize = $wgLang->formatNum($szdiff); |
| 197 | + $formattedSize = $wgLang->formatNum($szdiff); |
198 | 198 | |
199 | 199 | if ( !$fastCharDiff[$code] ) { |
200 | | - $formatedSize = wfMsgExt( 'rc-change-size', array( 'parsemag', 'escape' ), $formatedSize ); |
| 200 | + $formattedSize = wfMsgExt( 'rc-change-size', array( 'parsemag', 'escape' ), $formattedSize ); |
201 | 201 | } |
202 | 202 | |
203 | 203 | if( abs( $szdiff ) > abs( $wgRCChangedSizeThreshold ) ) { |
— | — | @@ -204,13 +204,20 @@ |
205 | 205 | } else { |
206 | 206 | $tag = 'span'; |
207 | 207 | } |
208 | | - if( $szdiff === 0 ) { |
209 | | - return "<$tag class='mw-plusminus-null'>($formatedSize)</$tag>"; |
210 | | - } elseif( $szdiff > 0 ) { |
211 | | - return "<$tag class='mw-plusminus-pos'>(+$formatedSize)</$tag>"; |
212 | | - } else { |
213 | | - return "<$tag class='mw-plusminus-neg'>($formatedSize)</$tag>"; |
| 208 | + $formattedSizeClass = 'mw-plusminus-'; |
| 209 | + if ( $szdiff === 0 ) { |
| 210 | + $formattedSizeClass .= 'null'; |
214 | 211 | } |
| 212 | + if ( $szdiff > 0 ) { |
| 213 | + $formattedSize = '+' . $formattedSize; |
| 214 | + $formattedSizeClass .= 'pos'; |
| 215 | + } |
| 216 | + if ( $szdiff < 0 ) { |
| 217 | + $formattedSizeClass .= 'neg'; |
| 218 | + } |
| 219 | + return Xml::element($tag, |
| 220 | + array('dir' => 'ltr', 'class' => $formattedSizeClass), |
| 221 | + "($formattedSize)"); |
215 | 222 | } |
216 | 223 | |
217 | 224 | /** |
— | — | @@ -344,7 +351,7 @@ |
345 | 352 | if( $this->isDeleted( $rc, Revision::DELETED_USER ) ) { |
346 | 353 | $s .= ' <span class="history-deleted">' . wfMsgHtml( 'rev-deleted-user' ) . '</span>'; |
347 | 354 | } else { |
348 | | - $s .= Linker::userLink( $rc->mAttribs['rc_user'], $rc->mAttribs['rc_user_text'] ); |
| 355 | + $s .= $this->getLang()->getDirMark() . Linker::userLink( $rc->mAttribs['rc_user'], $rc->mAttribs['rc_user_text'] ); |
349 | 356 | $s .= Linker::userToolLinks( $rc->mAttribs['rc_user'], $rc->mAttribs['rc_user_text'] ); |
350 | 357 | } |
351 | 358 | } |
— | — | @@ -1068,7 +1075,7 @@ |
1069 | 1076 | * Enhanced RC ungrouped line. |
1070 | 1077 | * |
1071 | 1078 | * @param $rcObj RecentChange |
1072 | | - * @return String: a HTML formated line (generated using $r) |
| 1079 | + * @return String: a HTML formatted line (generated using $r) |
1073 | 1080 | */ |
1074 | 1081 | protected function recentChangesBlockLine( $rcObj ) { |
1075 | 1082 | global $wgRCShowChangedSize; |