From: Raimond Spekking Date: Sat, 24 Oct 2009 14:56:23 +0000 (+0000) Subject: Follow-up r58087: formatNum the number of revisions X-Git-Tag: 1.31.0-rc.0~39138 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=f28933cc91a7b311d99ff549f7fb09bed1974f21;p=lhc%2Fweb%2Fwiklou.git Follow-up r58087: formatNum the number of revisions * Add a CSS class * Break long line --- diff --git a/includes/Article.php b/includes/Article.php index f9a04cc7f3..09bb46d047 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -2598,11 +2598,16 @@ class Article { // If the page has a history, insert a warning if( $hasHistory && !$confirm ) { + global $wgLang; $skin = $wgUser->getSkin(); $revisions = $this->estimateRevisionCount(); - $wgOut->addHTML( '' . wfMsgExt( 'historywarning', array( 'parseinline' ), $revisions ) . ' ' . $skin->historyLink() . '' ); + $wgOut->addHTML( '' . + wfMsgExt( 'historywarning', array( 'parseinline' ), $wgLang->formatNum( $revisions ) ) .' ' . + $skin->historyLink() . + '' + ); if( $bigHistory ) { - global $wgLang, $wgDeleteRevisionsLimit; + global $wgDeleteRevisionsLimit; $wgOut->wrapWikiMsg( "
\n$1
\n", array( 'delete-warning-toobig', $wgLang->formatNum( $wgDeleteRevisionsLimit ) ) ); }