Update BlogEntry.php

missing $
This commit is contained in:
Phill Price 2014-10-23 21:44:43 +01:00
parent 559ccd9e6b
commit b831bb87d8

View File

@ -51,7 +51,7 @@ class BlogEntry extends Page {
$requestedDevBuild = (stripos($this->request->getURL(), 'dev/build') === 0);
if(!$requestedDevBuild){
this->setField('Date', date('Y-m-d H:i:s', strtotime('now')));
$this->setField('Date', date('Y-m-d H:i:s', strtotime('now')));
$this->setField('Author', Member::currentUser() ? Member::currentUser()->getName() : '');
}
}