summaryrefslogtreecommitdiff
path: root/includes/SpecialUncategorizedpages.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/SpecialUncategorizedpages.php')
-rw-r--r--includes/SpecialUncategorizedpages.php57
1 files changed, 0 insertions, 57 deletions
diff --git a/includes/SpecialUncategorizedpages.php b/includes/SpecialUncategorizedpages.php
deleted file mode 100644
index b26f6d93..00000000
--- a/includes/SpecialUncategorizedpages.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-/**
- *
- * @addtogroup SpecialPage
- */
-
-/**
- * A special page looking for page without any category.
- * @addtogroup SpecialPage
- */
-class UncategorizedPagesPage extends PageQueryPage {
- var $requestedNamespace = NS_MAIN;
-
- function getName() {
- return "Uncategorizedpages";
- }
-
- function sortDescending() {
- return false;
- }
-
- function isExpensive() {
- return true;
- }
- function isSyndicated() { return false; }
-
- function getSQL() {
- $dbr = wfGetDB( DB_SLAVE );
- list( $page, $categorylinks ) = $dbr->tableNamesN( 'page', 'categorylinks' );
- $name = $dbr->addQuotes( $this->getName() );
-
- return
- "
- SELECT
- $name as type,
- page_namespace AS namespace,
- page_title AS title,
- page_title AS value
- FROM $page
- LEFT JOIN $categorylinks ON page_id=cl_from
- WHERE cl_from IS NULL AND page_namespace={$this->requestedNamespace} AND page_is_redirect=0
- ";
- }
-}
-
-/**
- * constructor
- */
-function wfSpecialUncategorizedpages() {
- list( $limit, $offset ) = wfCheckLimits();
-
- $lpp = new UncategorizedPagesPage();
-
- return $lpp->doQuery( $offset, $limit );
-}
-
-