MINOR Updated correct HTTPRequest class for @deprecated notice on HTTP::sendFileToBrowser()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@69686 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-01-05 03:11:08 +00:00 committed by Sam Minnee
parent 7a6cca4d35
commit e5bafe0467

View File

@ -136,7 +136,7 @@ class HTTP {
* Outputs appropriate header for downloading a file * Outputs appropriate header for downloading a file
* exits() after the call, so that no further output is given. * exits() after the call, so that no further output is given.
* *
* @deprecated 2.3 Return a HTTPResponse::send_file() object instead * @deprecated 2.3 Return a HTTPRequest::send_file() object instead
*/ */
static function sendFileToBrowser($fileData, $fileName, $mimeType = false) { static function sendFileToBrowser($fileData, $fileName, $mimeType = false) {
user_error("HTTP::sendFileToBrowser() deprecated; return a HTTPRequest::send_file() object instead", E_USER_NOTICE); user_error("HTTP::sendFileToBrowser() deprecated; return a HTTPRequest::send_file() object instead", E_USER_NOTICE);