X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialAncientpages.php;h=b0830327bed0dbaf340e5fef4022db57c066172a;hb=35d9ad550f2f443455b3b76495d9cebfafdfaf37;hp=b0f333c45c0a3622d1df55264a40dfee711ea7b6;hpb=2e5b258457ac5cc6096eb0166295dab6d94d1527;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialAncientpages.php b/includes/specials/SpecialAncientpages.php index b0f333c45c..b0830327be 100644 --- a/includes/specials/SpecialAncientpages.php +++ b/includes/specials/SpecialAncientpages.php @@ -43,12 +43,16 @@ class AncientPagesPage extends QueryPage { function getQueryInfo() { return array( 'tables' => array( 'page', 'revision' ), - 'fields' => array( 'namespace' => 'page_namespace', - 'title' => 'page_title', - 'value' => 'rev_timestamp' ), - 'conds' => array( 'page_namespace' => MWNamespace::getContentNamespaces(), - 'page_is_redirect' => 0, - 'page_latest=rev_id' ) + 'fields' => array( + 'namespace' => 'page_namespace', + 'title' => 'page_title', + 'value' => 'rev_timestamp' + ), + 'conds' => array( + 'page_namespace' => MWNamespace::getContentNamespaces(), + 'page_is_redirect' => 0, + 'page_latest=rev_id' + ) ); } @@ -60,6 +64,11 @@ class AncientPagesPage extends QueryPage { return false; } + /** + * @param Skin $skin + * @param object $result Result row + * @return string + */ function formatResult( $skin, $result ) { global $wgContLang; @@ -69,6 +78,7 @@ class AncientPagesPage extends QueryPage { $title, htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ) ); + return $this->getLanguage()->specialList( $link, htmlspecialchars( $d ) ); }