summaryrefslogtreecommitdiff
path: root/includes/SpecialAncientpages.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2008-12-15 18:02:47 +0100
committerPierre Schmitz <pierre@archlinux.de>2008-12-15 18:02:47 +0100
commit396b28f3d881f5debd888ba9bb9b47c2d478a76f (patch)
tree10d6e1a721ee4ef69def34a57f02d7eb3fc9e31e /includes/SpecialAncientpages.php
parent0be4d3ccf6c4fe98a72704f9463ecdea2ee5e615 (diff)
update to Mediawiki 1.13.3; some cleanups
Diffstat (limited to 'includes/SpecialAncientpages.php')
-rw-r--r--includes/SpecialAncientpages.php63
1 files changed, 0 insertions, 63 deletions
diff --git a/includes/SpecialAncientpages.php b/includes/SpecialAncientpages.php
deleted file mode 100644
index dee8fbde..00000000
--- a/includes/SpecialAncientpages.php
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-/**
- *
- * @addtogroup SpecialPage
- */
-
-/**
- * Implements Special:Ancientpages
- * @addtogroup SpecialPage
- */
-class AncientPagesPage extends QueryPage {
-
- function getName() {
- return "Ancientpages";
- }
-
- function isExpensive() {
- return true;
- }
-
- function isSyndicated() { return false; }
-
- function getSQL() {
- global $wgDBtype;
- $db = wfGetDB( DB_SLAVE );
- $page = $db->tableName( 'page' );
- $revision = $db->tableName( 'revision' );
- #$use_index = $db->useIndexClause( 'cur_timestamp' ); # FIXME! this is gone
- $epoch = $wgDBtype == 'mysql' ? 'UNIX_TIMESTAMP(rev_timestamp)' :
- 'EXTRACT(epoch FROM rev_timestamp)';
- return
- "SELECT 'Ancientpages' as type,
- page_namespace as namespace,
- page_title as title,
- $epoch as value
- FROM $page, $revision
- WHERE page_namespace=".NS_MAIN." AND page_is_redirect=0
- AND page_latest=rev_id";
- }
-
- function sortDescending() {
- return false;
- }
-
- function formatResult( $skin, $result ) {
- global $wgLang, $wgContLang;
-
- $d = $wgLang->timeanddate( wfTimestamp( TS_MW, $result->value ), true );
- $title = Title::makeTitle( $result->namespace, $result->title );
- $link = $skin->makeKnownLinkObj( $title, htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ) );
- return wfSpecialList($link, $d);
- }
-}
-
-function wfSpecialAncientpages() {
- list( $limit, $offset ) = wfCheckLimits();
-
- $app = new AncientPagesPage();
-
- $app->doQuery( $offset, $limit );
-}
-
-