From f28933cc91a7b311d99ff549f7fb09bed1974f21 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Sat, 24 Oct 2009 14:56:23 +0000 Subject: [PATCH] Follow-up r58087: formatNum the number of revisions * Add a CSS class * Break long line --- includes/Article.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 ) ) ); } -- 2.20.1