5 * @subpackage SpecialPage
11 require_once( 'QueryPage.php' );
16 * @subpackage SpecialPage
18 class AncientPagesPage
extends QueryPage
{
21 return "Ancientpages";
24 function isExpensive() {
25 return parent
::isExpensive() ;
28 function isSyndicated() { return false; }
31 $db =& wfGetDB( DB_SLAVE
);
32 $cur = $db->tableName( 'cur' );
33 $use_index = $db->useIndexClause( 'cur_timestamp' );
35 "SELECT 'Ancientpages' as type,
36 cur_namespace as namespace,
38 cur_timestamp as value
40 WHERE cur_namespace=0 AND cur_is_redirect=0";
43 function sortDescending() {
47 function formatResult( $skin, $result ) {
48 global $wgLang, $wgContLang;
50 $d = $wgLang->timeanddate( wfTimestamp( TS_MW
, $result->value
), true );
51 $link = $skin->makeKnownLink( $result->title
, $wgContLang->convert( $result->title
) );
52 return "{$link} ({$d})";
56 function wfSpecialAncientpages() {
57 list( $limit, $offset ) = wfCheckLimits();
59 $app = new AncientPagesPage();
61 $app->doQuery( $offset, $limit );