c8fd40d686b863fa346983528ccd42bbfd06e5c0
5 * @subpackage SpecialPage
11 require_once( "QueryPage.php" );
16 * @subpackage SpecialPage
18 class UncategorizedPagesPage
extends PageQueryPage
{
19 var $requestedNamespace = NS_MAIN
;
22 return "Uncategorizedpages";
25 function sortDescending() {
29 function isExpensive() {
32 function isSyndicated() { return false; }
35 $dbr =& wfGetDB( DB_SLAVE
);
36 extract( $dbr->tableNames( 'page', 'categorylinks' ) );
37 $name = $dbr->addQuotes( $this->getName() );
43 page_namespace AS namespace,
47 LEFT JOIN $categorylinks ON page_id=cl_from
48 WHERE cl_from IS NULL AND page_namespace={$this->requestedNamespace} AND page_is_redirect=0
56 function wfSpecialUncategorizedpages() {
57 list( $limit, $offset ) = wfCheckLimits();
59 $lpp = new UncategorizedPagesPage();
61 return $lpp->doQuery( $offset, $limit );