MINOR Fixed HTTP::sendFileToBrowser() to output the response properly

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@75264 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-04-27 06:44:36 +00:00 committed by Sam Minnee
parent 2c162a2a05
commit ec5b9ecf06

View File

@ -136,7 +136,7 @@ class HTTP {
*/
static function sendFileToBrowser($fileData, $fileName, $mimeType = false) {
user_error("HTTP::sendFileToBrowser() deprecated; return a HTTPRequest::send_file() object instead", E_USER_NOTICE);
HTTPRequest::send_file($fileData, $fileName, $mimeType)->output();
echo HTTPRequest::send_file($fileData, $fileName, $mimeType);
exit(0);
}