X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialUncategorizedimages.php;h=1cb27a3fc6b1305aa70da98670074389d90f4544;hb=ccafa8bdb660181e1af42cc070f0367613f3a44d;hp=17de679f266e84f31f8f41d4c6facb2ef1fdd3fa;hpb=6b9c23cf6d47c4c854fd95acdbb72fd577aae8f8;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialUncategorizedimages.php b/includes/specials/SpecialUncategorizedimages.php index 17de679f26..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', + return [ + 'tables' => [ 'page', 'categorylinks' ], + 'fields' => [ 'namespace' => 'page_namespace', 'title' => 'page_title', - 'value' => 'page_title' ), - 'conds' => array( 'cl_from IS NULL', + 'value' => 'page_title' ], + 'conds' => [ 'cl_from IS NULL', 'page_namespace' => NS_FILE, - 'page_is_redirect' => 0 ), - 'join_conds' => array( 'categorylinks' => array( - 'LEFT JOIN', 'cl_from=page_id' ) ) - ); + 'page_is_redirect' => 0 ], + 'join_conds' => [ 'categorylinks' => [ + 'LEFT JOIN', 'cl_from=page_id' ] ] + ]; } protected function getGroupName() {