3 * Special page lists images which haven't been categorised
7 * @author Rob Church <robchur@gmail.com>
11 * @ingroup SpecialPage
13 class UncategorizedImagesPage
extends ImageQueryPage
{
16 return 'Uncategorizedimages';
19 function sortDescending() {
23 function isExpensive() {
27 function isSyndicated() {
32 $dbr = wfGetDB( DB_SLAVE
);
33 list( $page, $categorylinks ) = $dbr->tableNamesN( 'page', 'categorylinks' );
36 return "SELECT 'Uncategorizedimages' AS type, page_namespace AS namespace,
37 page_title AS title, page_title AS value
38 FROM {$page} LEFT JOIN {$categorylinks} ON page_id = cl_from
39 WHERE cl_from IS NULL AND page_namespace = {$ns} AND page_is_redirect = 0";
44 function wfSpecialUncategorizedimages() {
45 $uip = new UncategorizedImagesPage();
46 list( $limit, $offset ) = wfCheckLimits();
47 return $uip->doQuery( $offset, $limit );