mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
a0167372f1
commit
4e2388848b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user