X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialMostimages.php;h=1339f4bcbb450317ed87a2e2f09f2b2d47caf8bd;hb=24b59673133bc6f74c19540fd92fda3a3faffc45;hp=a961efd541e9506394373aca3afb202e883ef772;hpb=c0f872ddf7ac1ebe791933a1423c629eee9ee521;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialMostimages.php b/includes/specials/SpecialMostimages.php index a961efd541..1339f4bcbb 100644 --- a/includes/specials/SpecialMostimages.php +++ b/includes/specials/SpecialMostimages.php @@ -25,12 +25,11 @@ */ /** - * 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,14 +43,18 @@ 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 [ + 'tables' => [ 'imagelinks' ], + 'fields' => [ + 'namespace' => NS_FILE, + 'title' => 'il_to', + 'value' => 'COUNT(*)' + ], + 'options' => [ + 'GROUP BY' => 'il_to', + 'HAVING' => 'COUNT(*) > 1' + ] + ]; } function getCellHtml( $row ) {