Bug 32673: Keep the username in the input field if not existing
[lhc/web/wiklou.git] / includes / specials / SpecialAncientpages.php
index 680a948..1203e1f 100644 (file)
@@ -61,12 +61,12 @@ class AncientPagesPage extends QueryPage {
        function formatResult( $skin, $result ) {
                global $wgContLang;
 
-               $d = $this->getLang()->timeanddate( wfTimestamp( TS_MW, $result->value ), true );
+               $d = $this->getLanguage()->userTimeAndDate( $result->value, $this->getUser() );
                $title = Title::makeTitle( $result->namespace, $result->title );
                $link = Linker::linkKnown(
                        $title,
                        htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) )
                );
-               return wfSpecialList( $link, htmlspecialchars( $d ) );
+               return $this->getLanguage()->specialList( $link, htmlspecialchars( $d ) );
        }
 }