same minor typo as in LocalSettings (in example config url)
[mediawiki.git] / includes / SpecialShortpages.php
bloba34bb3605aed30b0c66dea833dc4a093bf911485
1 <?
3 include_once("QueryPage.php");
5 class ShortPagesPage extends QueryPage {
7 function getName() {
8 return "Shortpages";
11 function isExpensive() {
12 return 1;
15 function getSQL( $offset, $limit ) {
16 return "SELECT cur_title, LENGTH(cur_text) AS len FROM cur " .
17 "WHERE cur_namespace=0 AND cur_is_redirect=0 ORDER BY len " .
18 "LIMIT {$offset}, {$limit}";
21 function formatResult( $skin, $result ) {
22 $nb = wfMsg( "nbytes", $result->len );
23 $link = $skin->makeKnownLink( $result->cur_title, "" );
24 return "{$link} ({$nb})";
28 function wfSpecialShortpages()
30 list( $limit, $offset ) = wfCheckLimits();
32 $spp = new ShortPagesPage();
34 return $spp->doQuery( $offset, $limit );