mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Update BlogEntry.php
missing $
This commit is contained in:
parent
559ccd9e6b
commit
b831bb87d8
@ -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() : '');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user