tableName( 'page' ); $name = $dbr->addQuotes( $this->getName() ); return "SELECT $name as type, page_namespace as namespace, page_title as title, page_len AS value FROM $page WHERE page_namespace=".NS_MAIN." AND page_is_redirect=0"; } function sortDescending() { return false; } function formatResult( $skin, $result ) { global $wgLang, $wgContLang; $nb = htmlspecialchars( wfMsg( "nbytes", $wgLang->formatNum( $result->value ) ) ); $title = Title::makeTitle( $result->namespace, $result->title ); $link = $skin->makeKnownLinkObj( $title, $wgContLang->convert( $title->getPrefixedText() ) ); return "{$link} ({$nb})"; } } /** * constructor */ function wfSpecialShortpages() { list( $limit, $offset ) = wfCheckLimits(); $spp = new ShortPagesPage(); return $spp->doQuery( $offset, $limit ); } ?>