fdd850868f987d6e4ca87e0a7cb3a86641084fec
9 require_once( "QueryPage.php" );
14 class DeadendPagesPage
extends PageQueryPage
{
17 return "Deadendpages";
21 * LEFT JOIN is expensive
25 function isExpensive( ) {
32 function sortDescending() {
37 * @return string an sqlquery
40 $dbr =& wfGetDB( DB_SLAVE
);
41 extract( $dbr->tableNames( 'cur', 'links' ) );
42 return "SELECT 'Deadendpages' as type, cur_namespace AS namespace, cur_title as title, cur_title AS value " .
43 "FROM $cur LEFT JOIN $links ON cur_id = l_from " .
44 "WHERE l_from IS NULL " .
45 "AND cur_namespace = 0 " .
46 "AND cur_is_redirect = 0";
53 function wfSpecialDeadendpages() {
55 list( $limit, $offset ) = wfCheckLimits();
57 $depp = new DeadendPagesPage();
59 return $depp->doQuery( $offset, $limit );