Introduce 'FetchChangesList' hook; see docs/hooks.txt for more information
[lhc/web/wiklou.git] / includes / SpecialPopularpages.php
index 7ade3b4..77d4143 100644 (file)
@@ -5,11 +5,6 @@
  * @subpackage SpecialPage
  */
 
-/**
- *
- */
-require_once( "QueryPage.php" );
-
 /**
  *
  * @package MediaWiki
@@ -44,8 +39,9 @@ class PopularPagesPage extends QueryPage {
                global $wgLang, $wgContLang;
                $title = Title::makeTitle( $result->namespace, $result->title );
                $link = $skin->makeKnownLinkObj( $title, htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ) );
-               $nv = wfMsg( "nviews", $wgLang->formatNum( $result->value ) );
-               return "{$link} ({$nv})";
+               $nv = wfMsgExt( 'nviews', array( 'parsemag', 'escape'),
+                       $wgLang->formatNum( $result->value ) );
+               return wfSpecialList($link, $nv);
        }
 }
 
@@ -54,9 +50,9 @@ class PopularPagesPage extends QueryPage {
  */
 function wfSpecialPopularpages() {
     list( $limit, $offset ) = wfCheckLimits();
-    
+
     $ppp = new PopularPagesPage();
-    
+
     return $ppp->doQuery( $offset, $limit );
 }