From 7b1cd7b5b6c61cd4c0b73828adbd8ad0da26f964 Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Thu, 13 Jul 2006 17:55:46 +0000 Subject: [PATCH] Adding direction mark in the most popular pages in Special:Statistics. --- includes/SpecialStatistics.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 ); -- 2.20.1