Fixed interwiki bug
[lhc/web/wiklou.git] / includes / SpecialAncientpages.php
index 253c917..4d67603 100644 (file)
@@ -36,7 +36,7 @@ class AncientPagesPage extends QueryPage {
                        "SELECT 'Ancientpages' as type,
                                        page_namespace as namespace,
                                page_title as title,
-                               rev_timestamp as value
+                               UNIX_TIMESTAMP(rev_timestamp) as value
                        FROM $page, $revision
                        WHERE page_namespace=".NS_MAIN." AND page_is_redirect=0
                          AND page_latest=rev_id";
@@ -50,7 +50,8 @@ class AncientPagesPage extends QueryPage {
                global $wgLang, $wgContLang;
 
                $d = $wgLang->timeanddate( wfTimestamp( TS_MW, $result->value ), true );
-               $link = $skin->makeKnownLink( $result->title, $wgContLang->convert( $result->title) );
+               $title = Title::makeTitle( $result->namespace, $result->title );
+               $link = $skin->makeKnownLinkObj( $title, $wgContLang->convert( $title->getPrefixedText() ) );
                return "{$link} ({$d})";
        }
 }