Don't publish ErrorPage on install, as the manifest is not guaranteed to be built yet

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40516 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-08-20 04:23:51 +00:00
parent 56c9becd0f
commit 16edb3a4c2
1 changed files with 3 additions and 2 deletions

View File

@ -29,9 +29,10 @@ class ErrorPage extends Page {
$errorpage->URLSegment = "page-not-found";
$errorpage->ShowInMenus = false;
$errorpage->Content = "<p>Sorry, it seems you were trying to access a page that doesn't exist.</p><p>Please check the spelling of the URL you were trying to access and try again.</p>";
$errorpage->Status = "Published";
$errorpage->Status = "New page";
$errorpage->write();
$errorpage->publish("Stage", "Live");
// Don't publish, as the manifest may not be built yet
// $errorpage->publish("Stage", "Live");
if(!Database::$supressOutput) {