From 4e2388848b3392c2944887d24004b7b679443376 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Fri, 14 Nov 2008 00:32:01 +0000 Subject: [PATCH] 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 --- core/model/ErrorPage.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/model/ErrorPage.php b/core/model/ErrorPage.php index 58071127c..152001279 100755 --- a/core/model/ErrorPage.php +++ b/core/model/ErrorPage.php @@ -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);