From 53cef6b435c27458c23bff89ad5ae84455c92d18 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Tue, 25 Nov 2008 07:39:25 +0000 Subject: [PATCH] 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 --- core/HTTP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/HTTP.php b/core/HTTP.php index 04f7d818a..f48f5b96e 100644 --- a/core/HTTP.php +++ b/core/HTTP.php @@ -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); }