diff --git a/code/BigFamilyPage.php b/code/BigFamilyPage.php index 612173e..5f48f55 100644 --- a/code/BigFamilyPage.php +++ b/code/BigFamilyPage.php @@ -31,7 +31,7 @@ class BigFamilyPage extends Page{ $familyPage = new BigFamilyPage(); $familyPage->Title = "Big Family"; $familyPage->write(); - $familyPage->doPublish(); + $familyPage->publish('Stage', 'Live'); foreach(singleton('Employee')->data() as $name){ $page = new Page(); @@ -39,7 +39,7 @@ class BigFamilyPage extends Page{ $page->MenuTitle = $name; $page->ParentID = $familyPage->ID; $page->write(); - $page->doPublish(); + $page->publish('Stage', 'Live'); } DB::alteration_message("Added default 'BigFamilyPage' and its children pages","created"); diff --git a/code/FTPageMakerTask.php b/code/FTPageMakerTask.php index 2a9a384..e0ae805 100644 --- a/code/FTPageMakerTask.php +++ b/code/FTPageMakerTask.php @@ -20,7 +20,7 @@ class FTPageMakerTask extends BuildTask { $page->ParentID = $parentID; $page->Title = "Test page $prefix$i"; $page->write(); - $page->doPublish(); + $page->publish('Stage', 'Live'); echo "
  • Created '$page->Title'"; if($depth > 1) $this->makePages($count, $depth-1, $prefix."$i.", $page->ID);