dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
dbaec6e
)
Merge "(bug 23844) Add var dataCacheTime to mw.config"
author
Aaron Schulz
<aschulz@wikimedia.org>
Sat, 19 May 2012 22:05:20 +0000
(22:05 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Sat, 19 May 2012 22:05:20 +0000
(22:05 +0000)
includes/QueryPage.php
patch
|
blob
|
history
diff --git
a/includes/QueryPage.php
b/includes/QueryPage.php
index
44e9953
..
4440aac
100644
(file)
--- a/
includes/QueryPage.php
+++ b/
includes/QueryPage.php
@@
-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->add
InlineScript( "var dataCacheTime = '$ts';"
);
+ $out->add
JsConfigVars( 'dataCacheTime', $ts
);
$out->addWikiMsg( 'perfcachedts', $updated, $updateddate, $updatedtime, $maxResults );
} else {
$out->addWikiMsg( 'perfcached', $maxResults );