From: Ævar Arnfjörð Bjarmason Date: Wed, 11 May 2005 04:43:58 +0000 (+0000) Subject: * Output wikitext rather than mixed HTML and wikitext X-Git-Tag: 1.5.0alpha2~227 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=563c1c15f1a668438070ebe5570ddddc0ff4b44c;p=lhc%2Fweb%2Fwiklou.git * Output wikitext rather than mixed HTML and wikitext --- diff --git a/includes/SpecialStatistics.php b/includes/SpecialStatistics.php index 1a0ad99329..d7c88daced 100644 --- a/includes/SpecialStatistics.php +++ b/includes/SpecialStatistics.php @@ -12,8 +12,6 @@ function wfSpecialStatistics() { global $wgUser, $wgOut, $wgLang; $fname = 'wfSpecialStatistics'; - $wgOut->addHTML( '

' . wfMsg( 'sitestats' ) . "

\n" ); - $dbr =& wfGetDB( DB_SLAVE ); extract( $dbr->tableNames( 'page', 'site_stats', 'user', 'user_rights' ) ); @@ -30,7 +28,8 @@ function wfSpecialStatistics() { $edits = $row->ss_total_edits; $good = $row->ss_good_articles; - $text = wfMsg( 'sitestatstext', + $text = '==' . wfMsg( 'sitestats' ) . "==\n" ; + $text .= wfMsg( 'sitestatstext', $wgLang->formatNum( $total ), $wgLang->formatNum( $good ), $wgLang->formatNum( $views ), @@ -38,8 +37,7 @@ function wfSpecialStatistics() { $wgLang->formatNum( sprintf( '%.2f', $total ? $edits / $total : 0 ) ), $wgLang->formatNum( sprintf( '%.2f', $edits ? $views / $edits : 0 ) ) ); - $wgOut->addWikiText( $text ); - $wgOut->addHTML( '

' . wfMsg( 'userstats' ) . "

\n" ); + $text .= "\n==" . wfMsg( 'userstats' ) . "==\n"; $sql = "SELECT COUNT(user_id) AS total FROM $user"; $res = $dbr->query( $sql, $fname ); @@ -54,7 +52,7 @@ function wfSpecialStatistics() { $sk = $wgUser->getSkin(); $ap = '[[' . wfMsg( 'administrators' ) . ']]'; - $text = wfMsg( 'userstatstext', + $text .= wfMsg( 'userstatstext', $wgLang->formatNum( $total ), $wgLang->formatNum( $admins ), $ap ); $wgOut->addWikiText( $text );