From 370e83bb0dfd0c70de268c93bf07ad5ee0897192 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 15 Aug 2008 01:29:47 +0200 Subject: Update auf 1.13.0 --- includes/StreamFile.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'includes/StreamFile.php') diff --git a/includes/StreamFile.php b/includes/StreamFile.php index 2dbbe6de..b4bf531c 100644 --- a/includes/StreamFile.php +++ b/includes/StreamFile.php @@ -12,7 +12,7 @@ function wfStreamFile( $fname, $headers = array() ) { $encScript = htmlspecialchars( $_SERVER['SCRIPT_NAME'] ); echo "

File not found

-

Although this PHP script ($encScript) exists, the file requested for output +

Although this PHP script ($encScript) exists, the file requested for output ($encFile) does not.

"; @@ -23,7 +23,7 @@ function wfStreamFile( $fname, $headers = array() ) { // Cancel output buffering and gzipping if set wfResetOutputBuffers(); - + $type = wfGetType( $fname ); if ( $type and $type!="unknown/unknown") { header("Content-type: $type"); @@ -71,9 +71,7 @@ function wfGetType( $filename ) { return 'unknown/unknown'; } else { - $magic=& MimeMagic::singleton(); + $magic = MimeMagic::singleton(); return $magic->guessMimeType($filename); //full fancy mime detection } } - - -- cgit v1.2.2