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:
Ingo Schommer 2009-08-27 04:44:27 +00:00
parent 2767592d9f
commit 83aa90f1b2

View File

@ -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>"
); );