typo
[lhc/web/wiklou.git] / includes / SpecialLongpages.php
1 <?php
2
3 require_once( "QueryPage.php" );
4
5 class LongPagesPage extends QueryPage {
6
7 function getName() {
8 return "Longpages";
9 }
10
11 function isExpensive() {
12 return true;
13 }
14
15 function getSQL() {
16 return
17 "SELECT 'Longpages' as type,
18 cur_namespace as namespace,
19 cur_title as title,
20 LENGTH(cur_text) AS value
21 FROM cur
22 WHERE cur_namespace=0 AND cur_is_redirect=0";
23 }
24
25 function formatResult( $skin, $result ) {
26 global $wgLang;
27 $nb = wfMsg( "nbytes", $wgLang->formatNum( $result->value ) );
28 $link = $skin->makeKnownLink( $result->title, "" );
29 return "{$link} ({$nb})";
30 }
31 }
32
33 function wfSpecialLongpages()
34 {
35 list( $limit, $offset ) = wfCheckLimits();
36
37 $lpp = new LongPagesPage( );
38
39 $lpp->doQuery( $offset, $limit );
40 }
41
42 ?>