Merge "mediawiki.action.view.redirect: Don't unset wgInternalRedirectTargetUrl"
[lhc/web/wiklou.git] / includes / specials / SpecialMostimages.php
index 01a5caf..3666964 100644 (file)
  */
 
 /**
- * A special page page that list most used images
+ * A special page that lists most used images
  *
  * @ingroup SpecialPage
  */
 class MostimagesPage extends ImageQueryPage {
-
        function __construct( $name = 'Mostimages' ) {
                parent::__construct( $name );
        }
@@ -44,13 +43,17 @@ class MostimagesPage extends ImageQueryPage {
        }
 
        function getQueryInfo() {
-               return array (
-                       'tables' => array ( 'imagelinks' ),
-                       'fields' => array ( 'namespace' => NS_FILE,
-                                       'title' => 'il_to',
-                                       'value' => 'COUNT(*)' ),
-                       'options' => array ( 'GROUP BY' => 'il_to',
-                                       'HAVING' => 'COUNT(*) > 1' )
+               return array(
+                       'tables' => array( 'imagelinks' ),
+                       'fields' => array(
+                               'namespace' => NS_FILE,
+                               'title' => 'il_to',
+                               'value' => 'COUNT(*)'
+                       ),
+                       'options' => array(
+                               'GROUP BY' => 'il_to',
+                               'HAVING' => 'COUNT(*) > 1'
+                       )
                );
        }
 
@@ -58,4 +61,7 @@ class MostimagesPage extends ImageQueryPage {
                return $this->msg( 'nimagelinks' )->numParams( $row->value )->escaped() . '<br />';
        }
 
+       protected function getGroupName() {
+               return 'highuse';
+       }
 }