r86681 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86680‎ | r86681 | r86682 >
Date:23:25, 21 April 2011
Author:yaron
Status:deferred
Tags:
Comment:
Small improvements
Modified paths:
  • /trunk/extensions/ApprovedRevs/ApprovedRevs.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ApprovedRevs/ApprovedRevs.hooks.php
@@ -284,7 +284,7 @@
285285 ApprovedRevs::addCSS();
286286 ApprovedRevs::loadMessages();
287287 global $wgOut;
288 - $wgOut->addHTML( '<p class="approvedRevsEditWarning">' . wfMsg( 'approvedrevs-editwarning' ) . "</p>\n" );
 288+ $wgOut->addHTML( '<p class="approvedRevsEditWarning">' . wfMsg( 'approvedrevs-editwarning' ) . "</p>\n" );
289289 }
290290 return true;
291291 }
@@ -303,7 +303,9 @@
304304 if ( ! empty( $approvedRevID ) && $approvedRevID != $latestRevID ) {
305305 ApprovedRevs::addCSS();
306306 ApprovedRevs::loadMessages();
307 - $preFormHTML .= '<p><strong>' . wfMsg( 'approvedrevs-editwarning' ) . "</strong></p>\n";
 307+ $preFormHTML .= Xml::element ( 'p',
 308+ array( 'style' => 'font-weight: bold' ),
 309+ wfMsg( 'approvedrevs-editwarning' ) ) . "\n";
308310 }
309311 return true;
310312 }
@@ -373,7 +375,7 @@
374376 * revision. If it's the approved revision also add on a "star"
375377 * icon, regardless of the user.
376378 */
377 - static function addApprovalLink( $historyPage, &$row , &$s ) {
 379+ static function addApprovalLink( $historyPage, &$row , &$s ) {
378380 $title = $historyPage->getTitle();
379381 if ( ! ApprovedRevs::pageIsApprovable( $title ) ) {
380382 return true;

Status & tagging log