From cecb985bee3bdd252e1b8dc0bd500b37cd52be01 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 16 May 2007 20:58:53 +0000 Subject: Aktualisierung auf MediaWiki 1.10.0 Plugins angepasst und verbessert kleine Korrekturen am Design --- includes/OutputHandler.php | 64 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 includes/OutputHandler.php (limited to 'includes/OutputHandler.php') diff --git a/includes/OutputHandler.php b/includes/OutputHandler.php new file mode 100644 index 00000000..d7e7c90f --- /dev/null +++ b/includes/OutputHandler.php @@ -0,0 +1,64 @@ +/i', '', $s ); +} + +/** + * Add a Content-Length header if possible. This makes it cooperate with squid better. + */ +function wfDoContentLength( $length ) { + if ( !headers_sent() && $_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.0' ) { + header( "Content-Length: $length" ); + } +} + +?> -- cgit v1.2.3-54-g00ecf