X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialAncientpages.php;h=724435b04fb0956a48131658c6a49197601f298a;hb=5cbada9dea3f22e7bb33250197b156e8628b8e4a;hp=b0830327bed0dbaf340e5fef4022db57c066172a;hpb=8734fe02b84c0fdd6fa53454b23ce9239b50dc75;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialAncientpages.php b/includes/specials/SpecialAncientpages.php index b0830327be..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; }