mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
087cba096e
commit
53cef6b435
@ -139,7 +139,7 @@ class HTTP {
|
|||||||
* @deprecated 2.3 Return a HTTPResponse::send_file() object instead
|
* @deprecated 2.3 Return a HTTPResponse::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 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();
|
HTTPRequest::send_file($fileData, $fileName, $mimeType)->output();
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user