Merge pull request #21 from purplespider/beforeupdatecmsfields

Blog: Wrapped CMS fields in beforeUpdateCMSFields
This commit is contained in:
Michael Strong 2014-06-13 17:09:46 +01:00
commit fb85da54de

View File

@ -33,7 +33,7 @@ class Blog extends Page {
public function getCMSFields() {
$fields = parent::getCMSFields();
$this->beforeUpdateCMSFields(function($fields) {
$posts = $this->getBlogPosts();
$excluded = $this->getExcludedSiteTreeClassNames();
@ -72,6 +72,9 @@ class Blog extends Page {
$tags
));
});
$fields = parent::getCMSFields();
return $fields;
}