jenkins-bot has submitted this change and it was merged.
Change subject: static.php: Remove unused $maxage param from
wmfStaticShowError()
......................................................................
static.php: Remove unused $maxage param from wmfStaticShowError()
Change-Id: Ibae9294627d69f07df7326c136c4823423d9a181
---
M w/static.php
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Chad: Looks good to me, approved
jenkins-bot: Verified
diff --git a/w/static.php b/w/static.php
index 3694675..814c85d 100644
--- a/w/static.php
+++ b/w/static.php
@@ -29,10 +29,10 @@
require_once './MWVersion.php';
require getMediaWiki( 'includes/WebStart.php' );
-function wmfStaticShowError( $message, $smaxage = 60, $maxage = 0 ) {
+function wmfStaticShowError( $message, $smaxage = 60 ) {
header(
'Cache-Control: ' .
- 's-maxage=' . (int)$smaxage . ', must-revalidate, max-age=' .
(int)$maxage
+ 's-maxage=' . (int)$smaxage . ', must-revalidate, max-age=0'
);
header( 'Content-Type: text/plain; charset=utf-8' );
echo "$message\n";
--
To view, visit https://gerrit.wikimedia.org/r/320321
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ibae9294627d69f07df7326c136c4823423d9a181
Gerrit-PatchSet: 2
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits