r84081 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84080‎ | r84081 | r84082 >
Date:08:08, 16 March 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
Get rid of useless hr
Modified paths:
  • /trunk/extensions/Translate/utils/TranslationHelpers.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/utils/TranslationHelpers.php
@@ -778,8 +778,9 @@
779779
780780 $class = 'mw-sp-translate-edit-info';
781781
782 - if ( $info !== null ) $info .= Html::element( 'hr' );
783 - $info .= $this->formatGettextComments();
 782+ $gettext = $this->formatGettextComments();
 783+ if ( $info !== null && $gettext ) $info .= Html::element( 'hr' );
 784+ $info .= $gettext;
784785
785786 if ( strval( $info ) === '' ) {
786787 $info = wfMsg( 'translate-edit-no-information' );

Status & tagging log