diff --git a/code/BlogEntry.php b/code/BlogEntry.php index 5e0a869..855995b 100644 --- a/code/BlogEntry.php +++ b/code/BlogEntry.php @@ -47,6 +47,9 @@ class BlogEntry extends Page { parent::populateDefaults(); $this->setField('Date', date('Y-m-d H:i:s', strtotime('now'))); + + if(Member::currentUser()) + $this->setField('Author',Member::currentUser()->FirstName); } function getCMSFields() {