API: Added uiprop=editcount to meta=userinfo
[lhc/web/wiklou.git] / includes / SpecialMostimages.php
index 6a6d8c5..beb42fc 100644 (file)
@@ -8,9 +8,10 @@
  */
 
 /**
+ * implements Special:Mostimages
  * @addtogroup SpecialPage
  */
-class MostimagesPage extends QueryPage {
+class MostimagesPage extends ImageQueryPage {
 
        function getName() { return 'Mostimages'; }
        function isExpensive() { return true; }
@@ -32,20 +33,12 @@ class MostimagesPage extends QueryPage {
                        ";
        }
 
-       function formatResult( $skin, $result ) {
-               global $wgLang, $wgContLang;
-
-               $nt = Title::makeTitle( $result->namespace, $result->title );
-               $text = $wgContLang->convert( $nt->getPrefixedText() );
-
-               $plink = $skin->makeKnownLink( $nt->getPrefixedText(), $text );
-
-               $nl = wfMsgExt( 'nlinks', array( 'parsemag', 'escape'),
-                       $wgLang->formatNum ( $result->value ) );
-               $nlink = $skin->makeKnownLink( $nt->getPrefixedText() . '#filelinks', $nl );
-
-               return wfSpecialList($plink, $nlink);
+       function getCellHtml( $row ) {
+               global $wgLang;
+               return wfMsgExt( 'nlinks',  array( 'parsemag', 'escape' ), 
+                       $wgLang->formatNum( $row->value ) ) . '<br />';
        }
+
 }
 
 /**
@@ -59,4 +52,4 @@ function wfSpecialMostimages() {
        $wpp->doQuery( $offset, $limit );
 }
 
-?>
+