3 require_once( "QueryPage.php" );
5 class LonelyPagesPage
extends PageQueryPage
{
11 function isExpensive() {
15 function sortDescending() {
19 function getSQL( $offset, $limit ) {
21 return "SELECT cur_namespace AS namespace, cur_title AS title, cur_title AS value " .
22 "FROM cur LEFT JOIN links ON cur_id=l_to ".
23 "WHERE l_to IS NULL AND cur_namespace=0 AND cur_is_redirect=0";
27 function wfSpecialLonelypages()
29 list( $limit, $offset ) = wfCheckLimits();
31 $lpp = new LonelyPagesPage();
33 return $lpp->doQuery( $offset, $limit );