r93283 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93282‎ | r93283 | r93284 >
Date:16:40, 27 July 2011
Author:yaron
Status:deferred
Tags:
Comment:
Rearranged additions and deletions listings to show deletions first
Modified paths:
  • /trunk/extensions/SemanticWatchlist/specials/SpecialSemanticWatchlist.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticWatchlist/specials/SpecialSemanticWatchlist.php
@@ -397,14 +397,14 @@
398398
399399 $lines = array();
400400
 401+ if ( count( $deletions ) > 0 ) {
 402+ $lines[] = Html::element( 'div', array( 'class' => 'swl-watchlist-deletions' ), wfMsg( 'swl-watchlist-deletions' ) ) . ' ' . implode( ', ', $deletions );
 403+ }
 404+
401405 if ( count( $insertions ) > 0 ) {
402406 $lines[] = Html::element( 'div', array( 'class' => 'swl-watchlist-insertions' ), wfMsg( 'swl-watchlist-insertions' ) ) . ' ' . implode( ', ', $insertions );
403407 }
404408
405 - if ( count( $deletions ) > 0 ) {
406 - $lines[] = Html::element( 'div', array( 'class' => 'swl-watchlist-deletions' ), wfMsg( 'swl-watchlist-deletions' ) ) . ' ' . implode( ', ', $deletions );
407 - }
408 -
409409 $html = Html::element( 'span', array( 'class' => 'swl-watchlist-prop' ), $property->getLabel() );
410410
411411 $html .= Html::rawElement(