X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialMostimages.php;h=1339f4bcbb450317ed87a2e2f09f2b2d47caf8bd;hb=0f6f4abbd10fa68af27f06e1a6f75d9aa786a2b6;hp=3d797908e46bc5c5706127e10a46a24906d47a3a;hpb=b642ae2b8759355c310682f4677d2f0a9747f5b5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialMostimages.php b/includes/specials/SpecialMostimages.php index 3d797908e4..1339f4bcbb 100644 --- a/includes/specials/SpecialMostimages.php +++ b/includes/specials/SpecialMostimages.php @@ -25,32 +25,43 @@ */ /** - * 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 ); } - function isExpensive() { return true; } - function isSyndicated() { return false; } + function isExpensive() { + return true; + } + + function isSyndicated() { + return false; + } 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 [ + 'tables' => [ 'imagelinks' ], + 'fields' => [ + 'namespace' => NS_FILE, + 'title' => 'il_to', + 'value' => 'COUNT(*)' + ], + 'options' => [ + 'GROUP BY' => 'il_to', + 'HAVING' => 'COUNT(*) > 1' + ] + ]; } function getCellHtml( $row ) { return $this->msg( 'nimagelinks' )->numParams( $row->value )->escaped() . '
'; } + protected function getGroupName() { + return 'highuse'; + } }