3 require_once("QueryPage.php");
5 class ShortPagesPage
extends QueryPage
{
11 function isExpensive() {
17 "SELECT 'Shortpages' as type,
18 cur_namespace as namespace,
20 LENGTH(cur_text) AS value
22 WHERE cur_namespace=0 AND cur_is_redirect=0";
25 function sortDescending() {
29 function formatResult( $skin, $result ) {
31 $nb = wfMsg( "nbytes", $wgLang->formatNum( $result->value
) );
32 $link = $skin->makeKnownLink( $result->title
, "" );
33 return "{$link} ({$nb})";
37 function wfSpecialShortpages()
39 list( $limit, $offset ) = wfCheckLimits();
41 $spp = new ShortPagesPage();
43 return $spp->doQuery( $offset, $limit );