(bug 7589) Update to Indonesian localisation (id) #38; updating the release notes
[mediawiki.git] / includes / SpecialUncategorizedpages.php
blob0ecc5d077da38c6981f0e1b4d5e8f6924eb4e1bc
1 <?php
2 /**
4 * @package MediaWiki
5 * @subpackage SpecialPage
6 */
8 /**
10 * @package MediaWiki
11 * @subpackage SpecialPage
13 class UncategorizedPagesPage extends PageQueryPage {
14 var $requestedNamespace = NS_MAIN;
16 function getName() {
17 return "Uncategorizedpages";
20 function sortDescending() {
21 return false;
24 function isExpensive() {
25 return true;
27 function isSyndicated() { return false; }
29 function getSQL() {
30 $dbr =& wfGetDB( DB_SLAVE );
31 extract( $dbr->tableNames( 'page', 'categorylinks' ) );
32 $name = $dbr->addQuotes( $this->getName() );
34 return
36 SELECT
37 $name as type,
38 page_namespace AS namespace,
39 page_title AS title,
40 page_title AS value
41 FROM $page
42 LEFT JOIN $categorylinks ON page_id=cl_from
43 WHERE cl_from IS NULL AND page_namespace={$this->requestedNamespace} AND page_is_redirect=0
48 /**
49 * constructor
51 function wfSpecialUncategorizedpages() {
52 list( $limit, $offset ) = wfCheckLimits();
54 $lpp = new UncategorizedPagesPage();
56 return $lpp->doQuery( $offset, $limit );