From: Domas Mituzas Date: Thu, 9 Sep 2004 11:53:14 +0000 (+0000) Subject: remove unix_timestamp() from query, and wfUnix2Timestamp(). I could not find any... X-Git-Tag: 1.5.0alpha1~2042 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=716a029970e4e68ba8ee4a9b1c4575233a73b228;p=lhc%2Fweb%2Fwiklou.git remove unix_timestamp() from query, and wfUnix2Timestamp(). I could not find any reason, really, no other reason, for that redundant job. Fixes bug386 --- diff --git a/includes/SpecialAncientpages.php b/includes/SpecialAncientpages.php index ac7c798851..91bd543765 100644 --- a/includes/SpecialAncientpages.php +++ b/includes/SpecialAncientpages.php @@ -33,7 +33,7 @@ class AncientPagesPage extends QueryPage { "SELECT 'Ancientpages' as type, cur_namespace as namespace, cur_title as title, - UNIX_TIMESTAMP(cur_timestamp) as value + cur_timestamp as value FROM $cur $use_index WHERE cur_namespace=0 AND cur_is_redirect=0"; } @@ -45,7 +45,7 @@ class AncientPagesPage extends QueryPage { function formatResult( $skin, $result ) { global $wgLang; - $d = $wgLang->timeanddate( wfUnix2Timestamp( $result->value ), true ); + $d = $wgLang->timeanddate( wfTimestamp( $result->value ), true ); $link = $skin->makeKnownLink( $result->title, "" ); return "{$link} ({$d})"; }