Chad has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/320321

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(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/21/320321/1

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: newchange
Gerrit-Change-Id: Ibae9294627d69f07df7326c136c4823423d9a181
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Chad <ch...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to