X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialMostimages.php;h=1339f4bcbb450317ed87a2e2f09f2b2d47caf8bd;hb=37d32f70ea289fcd36bdba71be49dba6b166c154;hp=98d8da3af9e99efad462603cea3d757d1061f123;hpb=c8cffcbd2813030b5524cfcdc20157773b843e37;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialMostimages.php b/includes/specials/SpecialMostimages.php index 98d8da3af9..1339f4bcbb 100644 --- a/includes/specials/SpecialMostimages.php +++ b/includes/specials/SpecialMostimages.php @@ -25,7 +25,7 @@ */ /** - * A special page page that list most used images + * A special page that lists most used images * * @ingroup SpecialPage */ @@ -43,18 +43,18 @@ class MostimagesPage extends ImageQueryPage { } function getQueryInfo() { - return array( - 'tables' => array( 'imagelinks' ), - 'fields' => array( + return [ + 'tables' => [ 'imagelinks' ], + 'fields' => [ 'namespace' => NS_FILE, 'title' => 'il_to', 'value' => 'COUNT(*)' - ), - 'options' => array( + ], + 'options' => [ 'GROUP BY' => 'il_to', 'HAVING' => 'COUNT(*) > 1' - ) - ); + ] + ]; } function getCellHtml( $row ) {