Merge pull request #345 from kinglozzer/patch-1

Change image field label back to “Featured Image” (closes #344)
This commit is contained in:
Michael Strong 2015-12-07 09:24:43 +13:00
commit 428cb742b2

View File

@ -176,7 +176,7 @@ class BlogPost extends Page
$self =& $this;
$this->beforeUpdateCMSFields(function ($fields) use ($self) {
$uploadField = UploadField::create('FeaturedImage', _t('BlogPost.FeaturedImage', 'Banner Image'));
$uploadField = UploadField::create('FeaturedImage', _t('BlogPost.FeaturedImage', 'Featured Image'));
$uploadField->getValidator()->setAllowedExtensions(array('jpg', 'jpeg', 'png', 'gif'));
/**