diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2013-08-12 09:28:15 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-08-12 09:28:15 +0200 |
commit | 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 (patch) | |
tree | 577a29fb579188d16003a209ce2a2e9c5b0aa2bd /includes/StreamFile.php | |
parent | cacc939b34e315b85e2d72997811eb6677996cc1 (diff) |
Update to MediaWiki 1.21.1
Diffstat (limited to 'includes/StreamFile.php')
-rw-r--r-- | includes/StreamFile.php | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/includes/StreamFile.php b/includes/StreamFile.php index 95c69a20..f5e4acff 100644 --- a/includes/StreamFile.php +++ b/includes/StreamFile.php @@ -32,9 +32,10 @@ class StreamFile { * Headers sent include: Content-type, Content-Length, Last-Modified, * and Content-Disposition. * - * @param $fname string Full name and path of the file to stream - * @param $headers array Any additional headers to send - * @param $sendErrors bool Send error messages if errors occur (like 404) + * @param string $fname Full name and path of the file to stream + * @param array $headers Any additional headers to send + * @param bool $sendErrors Send error messages if errors occur (like 404) + * @throws MWException * @return bool Success */ public static function stream( $fname, $headers = array(), $sendErrors = true ) { @@ -70,10 +71,10 @@ class StreamFile { * (b) cancels any PHP output buffering and automatic gzipping of output * (c) sends Content-Length header based on HTTP_IF_MODIFIED_SINCE check * - * @param $path string Storage path or file system path - * @param $info Array|bool File stat info with 'mtime' and 'size' fields - * @param $headers Array Additional headers to send - * @param $sendErrors bool Send error messages if errors occur (like 404) + * @param string $path Storage path or file system path + * @param array|bool $info File stat info with 'mtime' and 'size' fields + * @param array $headers Additional headers to send + * @param bool $sendErrors Send error messages if errors occur (like 404) * @return int|bool READY_STREAM, NOT_MODIFIED, or false on failure */ public static function prepareForStream( @@ -142,8 +143,8 @@ class StreamFile { /** * Determine the file type of a file based on the path * - * @param $filename string Storage path or file system path - * @param $safe bool Whether to do retroactive upload blacklist checks + * @param string $filename Storage path or file system path + * @param bool $safe Whether to do retroactive upload blacklist checks * @return null|string */ public static function contentTypeFromPath( $filename, $safe = true ) { |