mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge branch '2'
This commit is contained in:
commit
5c1cedeb98
@ -5,6 +5,7 @@ en:
|
|||||||
PermissionFail: 'You don''t have permission to create a {class}.'
|
PermissionFail: 'You don''t have permission to create a {class}.'
|
||||||
SilverStripe\Blog\Forms\GridField\GridFieldBlogPostState:
|
SilverStripe\Blog\Forms\GridField\GridFieldBlogPostState:
|
||||||
Draft: 'Saved as Draft on {date}'
|
Draft: 'Saved as Draft on {date}'
|
||||||
|
Modified: 'Modified'
|
||||||
Published: 'Published on {date}'
|
Published: 'Published on {date}'
|
||||||
Timer: 'Publish at {date}'
|
Timer: 'Publish at {date}'
|
||||||
SilverStripe\Blog\Model:
|
SilverStripe\Blog\Model:
|
||||||
|
@ -23,7 +23,7 @@ class GridFieldBlogPostState extends GridFieldSiteTreeState
|
|||||||
$modifiedLabel = '';
|
$modifiedLabel = '';
|
||||||
|
|
||||||
if ($record->isModifiedOnStage) {
|
if ($record->isModifiedOnStage) {
|
||||||
$modifiedLabel = '<span class="modified">' . _t(__CLASS__ . '.Modified') . '</span>';
|
$modifiedLabel = '<span class="modified">' . _t(__CLASS__ . '.Modified', 'Modified') . '</span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$record->isPublished()) {
|
if (!$record->isPublished()) {
|
||||||
|
@ -443,7 +443,7 @@ class BlogController extends PageController
|
|||||||
$posts->setPageLength($pageSize);
|
$posts->setPageLength($pageSize);
|
||||||
|
|
||||||
// Set current page
|
// Set current page
|
||||||
$start = $this->request->getVar($posts->getPaginationGetVar());
|
$start = (int)$this->request->getVar($posts->getPaginationGetVar());
|
||||||
$posts->setPageStart($start);
|
$posts->setPageStart($start);
|
||||||
|
|
||||||
return $posts;
|
return $posts;
|
||||||
|
Loading…
Reference in New Issue
Block a user