wfRecordUpload() using RecentChange instead of direct DB, which fixes a minor bug
[mediawiki.git] / includes / SpecialLongpages.php
blob2a9a1f5fa7ff7def913eb057ecc3fabe1f2ebab1
1 <?php
3 include_once( "QueryPage.php" );
5 class LongPagesPage extends QueryPage {
7 function getName() {
8 return "Longpages";
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 DESC " .
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 wfSpecialLongpages()
30 list( $limit, $offset ) = wfCheckLimits();
32 $lpp = new LongPagesPage( );
34 $lpp->doQuery( $offset, $limit );