4 * Special page lists images which haven't been categorised
6 * @addtogroup SpecialPage
7 * @author Rob Church <robchur@gmail.com>
10 class UncategorizedImagesPage
extends ImageQueryPage
{
13 return 'Uncategorizedimages';
16 function sortDescending() {
20 function isExpensive() {
24 function isSyndicated() {
29 $dbr = wfGetDB( DB_SLAVE
);
30 list( $page, $categorylinks ) = $dbr->tableNamesN( 'page', 'categorylinks' );
33 return "SELECT 'Uncategorizedimages' AS type, page_namespace AS namespace,
34 page_title AS title, page_title AS value
35 FROM {$page} LEFT JOIN {$categorylinks} ON page_id = cl_from
36 WHERE cl_from IS NULL AND page_namespace = {$ns} AND page_is_redirect = 0";
41 function wfSpecialUncategorizedimages() {
42 $uip = new UncategorizedImagesPage();
43 list( $limit, $offset ) = wfCheckLimits();
44 return $uip->doQuery( $offset, $limit );