X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialMostimages.php;h=1339f4bcbb450317ed87a2e2f09f2b2d47caf8bd;hb=e7720b8f8e09287384ddee271641d1b1721318bb;hp=78b2d911f768210c42dc239ec2284bdfba6690ed;hpb=9e2a081fcc286cb5486b2b73aba16908953e5873;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialMostimages.php b/includes/specials/SpecialMostimages.php index 78b2d911f7..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 ) {