mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-01 21:58:51 +02:00
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:
parent
73c52a6eeb
commit
8a7a25edf5
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user