mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Returning a HTTPResponse object from RedirectorPage_Controller to avoid generating output in TestRunner
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@85328 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
2767592d9f
commit
83aa90f1b2
@ -142,8 +142,8 @@ class RedirectorPage_Controller extends Page_Controller {
|
|||||||
* If we ever get this far, it means that the redirection failed.
|
* If we ever get this far, it means that the redirection failed.
|
||||||
*/
|
*/
|
||||||
function index() {
|
function index() {
|
||||||
return array(
|
return new HTTPResponse(
|
||||||
"Content" => "<p class=\"message-setupWithoutRedirect\">" .
|
"<p class=\"message-setupWithoutRedirect\">" .
|
||||||
_t('RedirectorPage.HASBEENSETUP', 'A redirector page has been set up without anywhere to redirect to.') .
|
_t('RedirectorPage.HASBEENSETUP', 'A redirector page has been set up without anywhere to redirect to.') .
|
||||||
"</p>"
|
"</p>"
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user