From 141db8d472e1fd1257f9e0cca646057f5bd56d7e Mon Sep 17 00:00:00 2001 From: Andrew Aitken-Fincham Date: Fri, 17 Feb 2017 11:22:39 +0000 Subject: [PATCH] showcalendar config method change --- src/Model/BlogPost.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/BlogPost.php b/src/Model/BlogPost.php index ace1085..a198736 100644 --- a/src/Model/BlogPost.php +++ b/src/Model/BlogPost.php @@ -266,7 +266,7 @@ class BlogPost extends Page } $publishDate = DatetimeField::create('PublishDate', _t('BlogPost.PublishDate', 'Publish Date')); - $publishDate->getDateField()->setConfig('showcalendar', true); + $publishDate->getDateField()->setShowCalendar(true); if (!$this->PublishDate) { $publishDate->setDescription( _t(