*/ /** * Special page lists images which haven't been categorised * * @ingroup SpecialPage * @todo FIXME: Use an instance of UncategorizedPagesPage or something */ class SpecialUncategorizedImages extends ImageQueryPage { function __construct( $name = 'Uncategorizedimages' ) { parent::__construct( $name ); $this->addHelpLink( 'Help:Categories' ); } function sortDescending() { return false; } function isExpensive() { return true; } function isSyndicated() { return false; } function getQueryInfo() { 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() { return 'maintenance'; } }