mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
56c9becd0f
commit
16edb3a4c2
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user