From b7ec0fd4df1723b0006fcda0adfe77e6c4c26332 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Tue, 28 Aug 2007 22:27:13 +0000 Subject: [PATCH] Fix ErrorPage publication git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40998 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/ErrorPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/model/ErrorPage.php b/core/model/ErrorPage.php index b11135516..d8e9e99fd 100755 --- a/core/model/ErrorPage.php +++ b/core/model/ErrorPage.php @@ -77,7 +77,7 @@ class ErrorPage extends Page { // Run the page Requirements::clear(); $controller = new ErrorPage_Controller($this); - $errorContent = $controller->run( array() ); + $errorContent = $controller->run( array() )->getBody(); if($fh = fopen("../assets/error-$this->ErrorCode.html", "w")) { fwrite($fh, $errorContent);