Merge "(bug 23844) Add var dataCacheTime to mw.config"
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 19 May 2012 22:05:20 +0000 (22:05 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 19 May 2012 22:05:20 +0000 (22:05 +0000)
includes/QueryPage.php

index 44e9953..4440aac 100644 (file)
@@ -499,7 +499,7 @@ abstract class QueryPage extends SpecialPage {
                                        $updateddate = $lang->userDate( $ts, $user );
                                        $updatedtime = $lang->userTime( $ts, $user );
                                        $out->addMeta( 'Data-Cache-Time', $ts );
-                                       $out->addInlineScript( "var dataCacheTime = '$ts';" );
+                                       $out->addJsConfigVars( 'dataCacheTime', $ts );
                                        $out->addWikiMsg( 'perfcachedts', $updated, $updateddate, $updatedtime, $maxResults );
                                } else {
                                        $out->addWikiMsg( 'perfcached', $maxResults );