BUGFIX Fixed incorrect class name in user_error message for deprecated function HTTP::sendFileToBrowser()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@66629 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2008-11-25 07:39:25 +00:00 committed by Sam Minnee
parent 087cba096e
commit 53cef6b435

View File

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