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( 'cur', 'links' ) );
37 return "SELECT 'Lonelypages' as type, cur_namespace AS namespace, cur_title AS title, cur_title AS value " .
38 "FROM $cur LEFT JOIN $links ON cur_id=l_to ".
39 "WHERE l_to IS NULL AND cur_namespace=0 AND cur_is_redirect=0";
46 function wfSpecialLonelypages() {
47 list( $limit, $offset ) = wfCheckLimits();
49 $lpp = new LonelyPagesPage();
51 return $lpp->doQuery( $offset, $limit );