mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Publish error page after installation is complete
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40531 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
16edb3a4c2
commit
7a150c48db
@ -322,6 +322,14 @@ HTML;
|
||||
* This action is called by the installation system
|
||||
*/
|
||||
function successfullyinstalled() {
|
||||
// The manifest should be built by now, so it's safe to publish the 404 page
|
||||
$fourohfour = Versioned::get_one_by_stage('ErrorPage', 'Stage', 'ErrorCode = 404');
|
||||
if($fourohfour) {
|
||||
$fourohfour->Status = "Published";
|
||||
$fourohfour->write();
|
||||
$fourohfour->publish("Stage", "Live");
|
||||
}
|
||||
|
||||
$title = new Varchar("Title");
|
||||
$content = new HTMLText("Content");
|
||||
$username = Session::get('username');
|
||||
|
Loading…
Reference in New Issue
Block a user