5 * @subpackage SpecialPage
11 require_once( "QueryPage.php" );
16 * @subpackage SpecialPage
18 class LonelyPagesPage
extends PageQueryPage
{
24 function sortDescending() {
28 function isExpensive() {
31 function isSyndicated() { return false; }
34 $dbr =& wfGetDB( DB_SLAVE
);
35 extract( $dbr->tableNames( 'page', 'pagelinks' ) );
38 "SELECT 'Lonelypages' AS type,
39 page_namespace AS namespace,
44 ON page_namespace=pl_namespace AND page_title=pl_title
45 WHERE pl_namespace IS NULL
46 AND page_namespace=".NS_MAIN
."
47 AND page_is_redirect=0";
55 function wfSpecialLonelypages() {
56 list( $limit, $offset ) = wfCheckLimits();
58 $lpp = new LonelyPagesPage();
60 return $lpp->doQuery( $offset, $limit );