Fix regression in even sizing of diff columns; forgot to restore a couple bits I...
[mediawiki.git] / includes / SpecialUncategorizedpages.php
blob408ac72655fc2d4ced73cbda5649af751b80953a
1 <?php
2 /**
4 * @addtogroup SpecialPage
5 */
7 /**
8 * A special page looking for page without any category.
9 * @addtogroup SpecialPage
11 class UncategorizedPagesPage extends PageQueryPage {
12 var $requestedNamespace = NS_MAIN;
14 function getName() {
15 return "Uncategorizedpages";
18 function sortDescending() {
19 return false;
22 function isExpensive() {
23 return true;
25 function isSyndicated() { return false; }
27 function getSQL() {
28 $dbr = wfGetDB( DB_SLAVE );
29 list( $page, $categorylinks ) = $dbr->tableNamesN( 'page', 'categorylinks' );
30 $name = $dbr->addQuotes( $this->getName() );
32 return
34 SELECT
35 $name as type,
36 page_namespace AS namespace,
37 page_title AS title,
38 page_title AS value
39 FROM $page
40 LEFT JOIN $categorylinks ON page_id=cl_from
41 WHERE cl_from IS NULL AND page_namespace={$this->requestedNamespace} AND page_is_redirect=0
46 /**
47 * constructor
49 function wfSpecialUncategorizedpages() {
50 list( $limit, $offset ) = wfCheckLimits();
52 $lpp = new UncategorizedPagesPage();
54 return $lpp->doQuery( $offset, $limit );