+Enable Atom support for that script that isn't migrated to Querypage.php class yet.
[mediawiki.git] / includes / SpecialDeadendpages.php
blobe30875f7df2b4e6644b0153d9d7533df0986fc86
1 <?php
3 include_once( "QueryPage.php" );
5 class DeadendPagesPage extends PageQueryPage {
7 function getName( ) {
8 return "Deadendpages";
11 # LEFT JOIN is expensive
13 function isExpensive( ) {
14 return 1;
17 function getSQL( $offset, $limit ) {
18 return "SELECT cur_title " .
19 "FROM cur LEFT JOIN links ON cur_id = l_from " .
20 "WHERE l_from IS NULL " .
21 "AND cur_namespace = 0 " .
22 "AND cur_is_redirect = 0 " .
23 "ORDER BY cur_title " .
24 "LIMIT {$offset}, {$limit}";
28 function wfSpecialDeadendpages() {
30 list( $limit, $offset ) = wfCheckLimits();
32 $depp = new DeadendPagesPage();
34 return $depp->doQuery( $offset, $limit );