From: Siebrand Mazeland Date: Sat, 26 Sep 2009 19:08:54 +0000 (+0000) Subject: Add optional separate date and time parameters for 'perfcachedts' in query pages X-Git-Tag: 1.31.0-rc.0~39514 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=3a7c7624be87578e45f5ebe381c7bc39b4ce325e;p=lhc%2Fweb%2Fwiklou.git Add optional separate date and time parameters for 'perfcachedts' in query pages * update use in FlaggedRevs * update check blacklist in Translate --- 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' ); }