Update versioning.md

Removed parent::onAfterPublish(); because Page parents does not implement it. The old code generate this error:

Error at framework/core/Object.php line 761: Uncaught Exception: Object->__call(): the method 'onafterpublish' does not exist on 'MyPage' (http://ssdev-master.zk/admin/pages/edit/EditForm)
This commit is contained in:
Gabriele Brosulo 2014-10-15 15:25:13 +02:00
parent 73c52a6eeb
commit 8a7a25edf5

View File

@ -196,6 +196,5 @@ whenever a blog entry has been published.
// ...
public function onAfterPublish() {
mail("sam@silverstripe.com", "Blog published", "The blog has been published");
parent::onAfterPublish();
}
}