From 0cabc22a57b4ba591633bdfc5d9162822d0294a2 Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Wed, 11 Nov 2015 09:14:39 +1300 Subject: [PATCH] Revert 7e2838c81c5a83bcaedd0ca782f7ee9afc909001 --- code/model/SiteTree.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/code/model/SiteTree.php b/code/model/SiteTree.php index c793c63c..abe79040 100755 --- a/code/model/SiteTree.php +++ b/code/model/SiteTree.php @@ -2534,8 +2534,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid * @return self */ public function doRestoreToStage() { - $this->invokeWithExtensions('onBeforeRestoreToStage', $this); - // Ensure that the parent page is restored, otherwise restore to root if($this->isParentArchived()) { $this->ParentID = 0; @@ -2564,8 +2562,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid } Versioned::reading_stage($oldStage); - - $this->invokeWithExtensions('onAfterRestoreToStage', $this); return $result; } @@ -2576,15 +2572,10 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid * @return bool Success */ public function doArchive() { - $this->invokeWithExtensions('onBeforeArchive', $this); - if($this->doUnpublish()) { $this->delete(); - $this->invokeWithExtensions('onAfterArchive', $this); - return true; } - return false; }