DB error log
[lhc/web/wiklou.git] / includes / SpecialLonelypages.php
1 <?php
2
3 require_once( "QueryPage.php" );
4
5 class LonelyPagesPage extends PageQueryPage {
6
7 function getName() {
8 return "Lonelypages";
9 }
10
11 function isExpensive() {
12 return true;
13 }
14
15 function getSQL() {
16 return "SELECT 'Lonelypages' as type, cur_namespace AS namespace, cur_title AS title, cur_title AS value " .
17 "FROM cur LEFT JOIN links ON cur_id=l_to ".
18 "WHERE l_to IS NULL AND cur_namespace=0 AND cur_is_redirect=0";
19 }
20 }
21
22 function wfSpecialLonelypages() {
23 list( $limit, $offset ) = wfCheckLimits();
24
25 $lpp = new LonelyPagesPage();
26
27 return $lpp->doQuery( $offset, $limit );
28 }
29
30 ?>