r58088 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r58087‎ | r58088 | r58089 >
Date:14:56, 24 October 2009
Author:raymond
Status:ok
Tags:
Comment:
Follow-up r58087: formatNum the number of revisions
* Add a CSS class
* Break long line
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -2598,11 +2598,16 @@
25992599
26002600 // If the page has a history, insert a warning
26012601 if( $hasHistory && !$confirm ) {
 2602+ global $wgLang;
26022603 $skin = $wgUser->getSkin();
26032604 $revisions = $this->estimateRevisionCount();
2604 - $wgOut->addHTML( '<strong>' . wfMsgExt( 'historywarning', array( 'parseinline' ), $revisions ) . ' ' . $skin->historyLink() . '</strong>' );
 2605+ $wgOut->addHTML( '<strong class="mw-delete-warning-revisions">' .
 2606+ wfMsgExt( 'historywarning', array( 'parseinline' ), $wgLang->formatNum( $revisions ) ) .' ' .
 2607+ $skin->historyLink() .
 2608+ '</strong>'
 2609+ );
26052610 if( $bigHistory ) {
2606 - global $wgLang, $wgDeleteRevisionsLimit;
 2611+ global $wgDeleteRevisionsLimit;
26072612 $wgOut->wrapWikiMsg( "<div class='error'>\n$1</div>\n",
26082613 array( 'delete-warning-toobig', $wgLang->formatNum( $wgDeleteRevisionsLimit ) ) );
26092614 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r58087* (bug 3480) MediaWiki:Historywarning now has a parameter that contains the n...ialex13:47, 24 October 2009

Status & tagging log