X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2FStreamFile.php;h=c9b2c33b9a7ae25b2341e2cd7646a55d5a844b23;hb=fb04cc5a7ef629703535dccdaecd6fe02f203c81;hp=dfe6badd414e6b2597104a3cfcef6ed2017e7f1e;hpb=bf25b795eabc9f5e18828084347b6d62f71cd015;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/StreamFile.php b/includes/StreamFile.php index dfe6badd41..c9b2c33b9a 100644 --- a/includes/StreamFile.php +++ b/includes/StreamFile.php @@ -68,8 +68,10 @@ class StreamFile { * @param string $fname Full name and path of the file to stream * @param int $flags Bitfield of STREAM_* constants * @since 1.24 + * @deprecated since 1.34, use HTTPFileStreamer::send404Message() instead */ public static function send404Message( $fname, $flags = 0 ) { + wfDeprecated( __METHOD__, '1.34' ); HTTPFileStreamer::send404Message( $fname, $flags ); } @@ -80,8 +82,10 @@ class StreamFile { * @param int $size File size * @return array|string Returns error string on failure (start, end, length) * @since 1.24 + * @deprecated since 1.34, use HTTPFileStreamer::parseRange() instead */ public static function parseRange( $range, $size ) { + wfDeprecated( __METHOD__, '1.34' ); return HTTPFileStreamer::parseRange( $range, $size ); } @@ -107,7 +111,6 @@ class StreamFile { case 'png': return 'image/png'; case 'jpg': - return 'image/jpeg'; case 'jpeg': return 'image/jpeg'; }