profiling correction
[mediawiki.git] / includes / SpecialLonelypages.php
blobf271d0863c99bc67c46a679da0455f34891b3a70
1 <?php
3 require_once( "QueryPage.php" );
5 class LonelyPagesPage extends PageQueryPage {
7 function getName() {
8 return "Lonelypages";
11 function isExpensive() {
12 return 1;
15 function sortDescending() {
16 return false;
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 );