same minor typo as in LocalSettings (in example config url)
[mediawiki.git] / includes / SpecialLonelypages.php
blob40bd400fd4bfeaf9e9720fa3fa4a930dcf7870d7
1 <?
3 include_once( "QueryPage.php" );
5 class LonelyPagesPage extends PageQueryPage {
7 function getName() {
8 return "Lonelypages";
11 function isExpensive() {
12 return 1;
15 function getSQL( $offset, $limit ) {
17 return "SELECT cur_title FROM cur LEFT JOIN links ON " .
18 "cur_id=l_to WHERE l_to IS NULL AND cur_namespace=0 AND " .
19 "cur_is_redirect=0 ORDER BY cur_title LIMIT {$offset}, {$limit}";
23 function wfSpecialLonelypages()
25 list( $limit, $offset ) = wfCheckLimits();
27 $lpp = new LonelyPagesPage();
29 return $lpp->doQuery( $offset, $limit );