X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialAncientpages.php;h=724435b04fb0956a48131658c6a49197601f298a;hb=5cbada9dea3f22e7bb33250197b156e8628b8e4a;hp=5d0b79f390b2135ce91bc2746ff1dc2d12a539be;hpb=a56052b07b7d4fb39258b089cd5db2f5fc342994;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialAncientpages.php b/includes/specials/SpecialAncientpages.php index 5d0b79f390..724435b04f 100644 --- a/includes/specials/SpecialAncientpages.php +++ b/includes/specials/SpecialAncientpages.php @@ -32,7 +32,7 @@ class AncientPagesPage extends QueryPage { parent::__construct( $name ); } - function isExpensive() { + public function isExpensive() { return true; } @@ -40,23 +40,23 @@ class AncientPagesPage extends QueryPage { return false; } - function getQueryInfo() { - return array( - 'tables' => array( 'page', 'revision' ), - 'fields' => array( + public function getQueryInfo() { + return [ + 'tables' => [ 'page', 'revision' ], + 'fields' => [ 'namespace' => 'page_namespace', 'title' => 'page_title', 'value' => 'rev_timestamp' - ), - 'conds' => array( + ], + 'conds' => [ 'page_namespace' => MWNamespace::getContentNamespaces(), 'page_is_redirect' => 0, 'page_latest=rev_id' - ) - ); + ] + ]; } - function usesTimestamps() { + public function usesTimestamps() { return true; } @@ -78,6 +78,7 @@ class AncientPagesPage extends QueryPage { $title, htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ) ); + return $this->getLanguage()->specialList( $link, htmlspecialchars( $d ) ); }