Add optional separate date and time parameters for 'perfcachedts' in query pages
authorSiebrand Mazeland <siebrand@users.mediawiki.org>
Sat, 26 Sep 2009 19:08:54 +0000 (19:08 +0000)
committerSiebrand Mazeland <siebrand@users.mediawiki.org>
Sat, 26 Sep 2009 19:08:54 +0000 (19:08 +0000)
* update use in FlaggedRevs
* update check blacklist in Translate

includes/QueryPage.php

index 86a988e..8111c54 100644 (file)
@@ -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' );
                                }