r80446 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80445‎ | r80446 | r80447 >
Date:17:23, 17 January 2011
Author:yaron
Status:deferred
Tags:
Comment:
Fix for Squid handling from OpenEI
Modified paths:
  • /trunk/extensions/SemanticForms/specials/SF_UploadWindow2.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/specials/SF_UploadWindow2.php
@@ -119,10 +119,12 @@
120120 */
121121 public function execute( $par ) {
122122 global $wgUser, $wgOut, $wgRequest;
123 - // disable $wgOut - we'll print out the page manually, taking
 123+ // Disable $wgOut - we'll print out the page manually, taking
124124 // the body created by the form, plus the necessary Javascript
125 - // files, and turning them into an HTML page
 125+ // files, and turning them into an HTML page.
126126 $wgOut->disable();
 127+ // This line is needed to get around Squid caching.
 128+ $wgOut->sendCacheControl();
127129
128130 $this->setHeaders();
129131 $this->outputHeader();