r112997 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112996‎ | r112997 | r112998 >
Date:04:37, 5 March 2012
Author:santhosh
Status:ok
Tags:
Comment:
Added warning or error classes to the priority language messages.
Modified paths:
  • /trunk/extensions/Translate/specials/SpecialTranslate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/specials/SpecialTranslate.php
@@ -151,9 +151,9 @@
152152 if ( $priorityForce === 'on' ) {
153153 // Hide table
154154 $this->paging['count'] = 0;
155 - $description .= wfMessage( 'tpt-discouraged-language-force', $priorityReason )->parseAsBlock();
 155+ $description .= Html::RawElement( 'div', array( 'class' => 'error' ), wfMessage( 'tpt-discouraged-language-force', $priorityReason )->parseAsBlock() );
156156 } else {
157 - $description .= wfMessage( 'tpt-discouraged-language', $priorityReason )->parseAsBlock();
 157+ $description .= Html::RawElement( 'div', array( 'class' => 'warning' ), wfMessage( 'tpt-discouraged-language', $priorityReason )->parseAsBlock() );
158158 }
159159 }
160160 if ( $description ) {

Status & tagging log