BUGFIX: Call onBeforeUnpublish/onAfterUnpublish events in doDeleteFromLive, because they amount to the same thing. (from r90001)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@96732 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-01-12 23:11:48 +00:00
parent 8a0302d2ac
commit 73de615e7c

View File

@ -1951,10 +1951,14 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
}
function doDeleteFromLive() {
$this->extend('onBeforeUnpublish');
$origStage = Versioned::current_stage();
Versioned::reading_stage('Live');
$this->delete();
Versioned::reading_stage($origStage);
$this->extend('onAfterUnpublish');
}
/**