8 * A special page looking for articles with no article linking to them,
10 * @ingroup SpecialPage
12 class LonelyPagesPage
extends PageQueryPage
{
17 function getPageHeader() {
18 return wfMsgExt( 'lonelypagestext', array( 'parse' ) );
21 function sortDescending() {
25 function isExpensive() {
28 function isSyndicated() { return false; }
31 $dbr = wfGetDB( DB_SLAVE
);
32 list( $page, $pagelinks ) = $dbr->tableNamesN( 'page', 'pagelinks' );
35 "SELECT 'Lonelypages' AS type,
36 page_namespace AS namespace,
41 ON page_namespace=pl_namespace AND page_title=pl_title
42 WHERE pl_namespace IS NULL
43 AND page_namespace=".NS_MAIN
."
44 AND page_is_redirect=0";
52 function wfSpecialLonelypages() {
53 list( $limit, $offset ) = wfCheckLimits();
55 $lpp = new LonelyPagesPage();
57 return $lpp->doQuery( $offset, $limit );