From 2e742d03992ef45b2dbffee77e7c82392a63844c Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 20 May 2009 05:16:00 +0000 Subject: [PATCH] API CHANGE Removed @deprecated 2.3 function HTTP::sendFileToBrowser(): Please use HTTPRequest::send_file() instead git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@77357 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/HTTP.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/core/HTTP.php b/core/HTTP.php index 6220d2790..0b1480795 100644 --- a/core/HTTP.php +++ b/core/HTTP.php @@ -127,19 +127,7 @@ class HTTP { static function getImagesIn($content) { return self::findByTagAndAttribute($content, array("img" => "src")); } - - /** - * Outputs appropriate header for downloading a file - * exits() after the call, so that no further output is given. - * - * @deprecated 2.3 Return a HTTPRequest::send_file() object instead - */ - 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(); - exit(0); - } - + /* * Get mime type based on extension */