BUGFIX: Fix publishing of error pages

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@67137 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2008-12-02 03:25:57 +00:00 committed by Sam Minnee
parent 080be5ef98
commit a037a24148

View File

@ -97,7 +97,7 @@ class ErrorPage extends Page {
$oldStage = Versioned::current_stage();
// Run the page
$response = Director::test($this->Link());
$response = Director::test($this->URLSegment);
$errorContent = $response->getBody();
if(!file_exists(ASSETS_PATH)) {