From a181f7c151f16f042b830170a02c7ba8ea0c0ac7 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Wed, 3 Oct 2007 00:10:49 +0000 Subject: [PATCH] Fixed duplicate getBody() git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42999 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 c7e0136a3..b7c800770 100755 --- a/core/model/ErrorPage.php +++ b/core/model/ErrorPage.php @@ -83,7 +83,7 @@ class ErrorPage extends Page { $errorContent = $controller->run( array() )->getBody(); if($fh = fopen("../assets/error-$this->ErrorCode.html", "w")) { - fwrite($fh, $errorContent->getBody()); + fwrite($fh, $errorContent); fclose($fh); }