From: Rotem Liss Date: Thu, 13 Jul 2006 17:55:46 +0000 (+0000) Subject: Adding direction mark in the most popular pages in Special:Statistics. X-Git-Tag: 1.31.0-rc.0~56266 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=7b1cd7b5b6c61cd4c0b73828adbd8ad0da26f964;p=lhc%2Fweb%2Fwiklou.git Adding direction mark in the most popular pages in Special:Statistics. --- diff --git a/includes/SpecialStatistics.php b/includes/SpecialStatistics.php index dda82a8568..7db133950d 100644 --- a/includes/SpecialStatistics.php +++ b/includes/SpecialStatistics.php @@ -82,7 +82,7 @@ function wfSpecialStatistics() { $wgOut->addWikiText( $text ); - global $wgDisableCounters, $wgMiserMode, $wgUser, $wgLang; + global $wgDisableCounters, $wgMiserMode, $wgUser, $wgLang, $wgContLang; if( !$wgDisableCounters && !$wgMiserMode ) { $res = $dbr->query( "SELECT page_namespace, page_title, page_counter FROM {$page} WHERE page_is_redirect = 0 AND page_counter > 0 ORDER BY page_counter DESC LIMIT 0,10", __METHOD__ ); if( $res ) { @@ -91,7 +91,8 @@ function wfSpecialStatistics() { $wgOut->addHtml( '
    ' ); while( $row = $dbr->fetchObject( $res ) ) { $link = $skin->makeKnownLinkObj( Title::makeTitleSafe( $row->page_namespace, $row->page_title ) ); - $wgOut->addHtml( '
  1. ' . $link . ' [' . $wgLang->formatNum( $row->page_counter ) . ']
  2. ' ); + $dirmark = $wgContLang->getDirMark(); + $wgOut->addHtml( '
  3. ' . $link . $dirmark . ' [' . $wgLang->formatNum( $row->page_counter ) . ']
  4. ' ); } $wgOut->addHtml( '
' ); $dbr->freeResult( $res );