diff --git a/forms/gridfield/GridFieldBlogPostState.php b/forms/gridfield/GridFieldBlogPostState.php index 69a5836..e3a975e 100755 --- a/forms/gridfield/GridFieldBlogPostState.php +++ b/forms/gridfield/GridFieldBlogPostState.php @@ -31,17 +31,20 @@ class GridFieldBlogPostState implements GridField_ColumnProvider { if($record->hasMethod("isPublished")) { $published = $record->isPublished(); if(!$published) { - return _t("GridFieldBlogPostState.Draft", + return _t( + "GridFieldBlogPostState.Draft", ' Saved as Draft on {date}', - "State for when a post is saved.", array( + "State for when a post is saved.", + array( "date" => $record->dbObject("LastEdited")->Nice() - ) - ); + ) + ); } else if (strtotime($record->PublishDate) > time()) { return _t( "GridFieldBlogPostState.Timer", ' Publish at {date}', - "State for when a post is published.", array( + "State for when a post is published.", + array( "date" => $record->dbObject("PublishDate")->Nice() ) );