https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112383
Revision: 112383
Author: aaron
Date: 2012-02-25 02:01:35 +0000 (Sat, 25 Feb 2012)
Log Message:
-----------
Fixed $headers check in streamFile() to use isset()
Modified Paths:
--------------
trunk/phase3/includes/filerepo/backend/FileBackend.php
Modified: trunk/phase3/includes/filerepo/backend/FileBackend.php
===================================================================
--- trunk/phase3/includes/filerepo/backend/FileBackend.php 2012-02-25
01:44:13 UTC (rev 112382)
+++ trunk/phase3/includes/filerepo/backend/FileBackend.php 2012-02-25
02:01:35 UTC (rev 112383)
@@ -1262,7 +1262,7 @@
}
// Set output buffer and HTTP headers for stream
- $extraHeaders = $params['headers'] ? $params['headers'] :
array();
+ $extraHeaders = isset( $params['headers'] ) ?
$params['headers'] : array();
$res = StreamFile::prepareForStream( $params['src'], $info,
$extraHeaders );
if ( $res == StreamFile::NOT_MODIFIED ) {
// do nothing; client cache is up to date
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs