BUGFIX #2232: Prevent requirements from breaking ErrorPage publication

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@65895 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-11-14 00:32:01 +00:00
parent a0167372f1
commit 4e2388848b

View File

@ -103,6 +103,7 @@ class ErrorPage extends Page {
Requirements::clear();
$controller = new ErrorPage_Controller($this);
$errorContent = $controller->handleRequest(new HTTPRequest('GET',''))->getBody();
Requirements::clear();
if(!file_exists(ASSETS_PATH)) {
mkdir(ASSETS_PATH, 02775);