From 3a7c7624be87578e45f5ebe381c7bc39b4ce325e Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Sat, 26 Sep 2009 19:08:54 +0000 Subject: [PATCH] Add optional separate date and time parameters for 'perfcachedts' in query pages * update use in FlaggedRevs * update check blacklist in Translate --- includes/QueryPage.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/QueryPage.php b/includes/QueryPage.php index 86a988e987..8111c54cc3 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -304,10 +304,12 @@ class QueryPage { $tRow = $dbr->fetchObject( $tRes ); if( $tRow ) { - $updated = $wgLang->timeAndDate( $tRow->qci_timestamp, true, true ); + $updated = $wgLang->timeanddate( $tRow->qci_timestamp, true, true ); + $updateddate = $wgLang->date( $tRow->qci_timestamp, true, true ); + $updatedtime = $wgLang->time( $tRow->qci_timestamp, true, true ); $wgOut->addMeta( 'Data-Cache-Time', $tRow->qci_timestamp ); $wgOut->addInlineScript( "var dataCacheTime = '{$tRow->qci_timestamp}';" ); - $wgOut->addWikiMsg( 'perfcachedts', $updated ); + $wgOut->addWikiMsg( 'perfcachedts', $updated, $updateddate, $updatedtime ); } else { $wgOut->addWikiMsg( 'perfcached' ); } -- 2.20.1