pref toc styling
[mediawiki.git] / includes / SpecialAncientpages.php
blob52bc0058b3b2290b05a9e8dbedad67269eec66cf
1 <?php
3 require_once( "QueryPage.php" );
5 class AncientPagesPage extends QueryPage {
7 function getName() {
8 return "Ancientpages";
11 function isExpensive() {
12 return parent::isExpensive() ;
15 function getSQL() {
16 return
17 "SELECT 'Ancientpages' as type,
18 cur_namespace as namespace,
19 cur_title as title,
20 UNIX_TIMESTAMP(cur_timestamp) as value
21 FROM cur USE INDEX (cur_timestamp)
22 WHERE cur_namespace=0 AND cur_is_redirect=0";
25 function sortDescending() {
26 return false;
29 function formatResult( $skin, $result ) {
30 global $wgLang;
32 $d = $wgLang->timeanddate( wfUnix2Timestamp( $result->value ), true );
33 $link = $skin->makeKnownLink( $result->title, "" );
34 return "{$link} ({$d})";
38 function wfSpecialAncientpages()
40 list( $limit, $offset ) = wfCheckLimits();
42 $app = new AncientPagesPage();
44 $app->doQuery( $offset, $limit );