X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2FSpecialUncategorizedimages.php;h=1cb27a3fc6b1305aa70da98670074389d90f4544;hp=3bfcedece34417885b40f1a3b928fcec1c6484db;hb=e3bd13db0c285f312e31bb1b7271af4628cca80c;hpb=c0f872ddf7ac1ebe791933a1423c629eee9ee521 diff --git a/includes/specials/SpecialUncategorizedimages.php b/includes/specials/SpecialUncategorizedimages.php index 3bfcedece3..1cb27a3fc6 100644 --- a/includes/specials/SpecialUncategorizedimages.php +++ b/includes/specials/SpecialUncategorizedimages.php @@ -26,10 +26,9 @@ * Special page lists images which haven't been categorised * * @ingroup SpecialPage + * @todo FIXME: Use an instance of UncategorizedPagesPage or something */ -// @todo FIXME: Use an instance of UncategorizedPagesPage or something class UncategorizedImagesPage extends ImageQueryPage { - function __construct( $name = 'Uncategorizedimages' ) { parent::__construct( $name ); } @@ -47,17 +46,17 @@ class UncategorizedImagesPage extends ImageQueryPage { } function getQueryInfo() { - return array( - 'tables' => array( 'page', 'categorylinks' ), - 'fields' => array( 'namespace' => 'page_namespace', - 'title' => 'page_title', - 'value' => 'page_title' ), - 'conds' => array( 'cl_from IS NULL', - 'page_namespace' => NS_FILE, - 'page_is_redirect' => 0 ), - 'join_conds' => array( 'categorylinks' => array( - 'LEFT JOIN', 'cl_from=page_id' ) ) - ); + return [ + 'tables' => [ 'page', 'categorylinks' ], + 'fields' => [ 'namespace' => 'page_namespace', + 'title' => 'page_title', + 'value' => 'page_title' ], + 'conds' => [ 'cl_from IS NULL', + 'page_namespace' => NS_FILE, + 'page_is_redirect' => 0 ], + 'join_conds' => [ 'categorylinks' => [ + 'LEFT JOIN', 'cl_from=page_id' ] ] + ]; } protected function getGroupName() {