mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge branch '2.4' into 2.5
This commit is contained in:
commit
c76cbcb0f0
@ -36,7 +36,7 @@ matrix:
|
|||||||
env: DB=PGSQL CORE_RELEASE=3.5
|
env: DB=PGSQL CORE_RELEASE=3.5
|
||||||
- php: 5.4
|
- php: 5.4
|
||||||
env: DB=SQLITE
|
env: DB=SQLITE
|
||||||
- php: 5.3
|
- php: 5.4
|
||||||
env: DB=MYSQL
|
env: DB=MYSQL
|
||||||
- php: 7.1
|
- php: 7.1
|
||||||
env: DB=MYSQL CORE_RELEASE=3.6
|
env: DB=MYSQL CORE_RELEASE=3.6
|
||||||
|
@ -20,7 +20,7 @@ class GridFieldBlogPostState extends GridFieldSiteTreeState
|
|||||||
$modifiedLabel = '';
|
$modifiedLabel = '';
|
||||||
|
|
||||||
if ($record->isModifiedOnStage) {
|
if ($record->isModifiedOnStage) {
|
||||||
$modifiedLabel = '<span class="modified">' . _t('GridFieldBlogPostState.Modified') . '</span>';
|
$modifiedLabel = '<span class="modified">' . _t('GridFieldBlogPostState.Modified', 'Modified') . '</span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$record->isPublished()) {
|
if (!$record->isPublished()) {
|
||||||
|
@ -1043,7 +1043,7 @@ class Blog_Controller extends Page_Controller
|
|||||||
$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;
|
||||||
|
@ -121,6 +121,7 @@ en:
|
|||||||
PermissionFail: 'You don''t have permission to create a {class}.'
|
PermissionFail: 'You don''t have permission to create a {class}.'
|
||||||
GridFieldBlogPostState:
|
GridFieldBlogPostState:
|
||||||
Draft: '<i class="btn-icon gridfield-icon btn-icon-pencil"></i> Saved as Draft on {date}'
|
Draft: '<i class="btn-icon gridfield-icon btn-icon-pencil"></i> Saved as Draft on {date}'
|
||||||
|
Modified: 'Modified'
|
||||||
Published: '<i class="btn-icon gridfield-icon btn-icon-accept"></i> Published on {date}'
|
Published: '<i class="btn-icon gridfield-icon btn-icon-accept"></i> Published on {date}'
|
||||||
Timer: '<i class="gridfield-icon blog-icon-timer"></i> Publish at {date}'
|
Timer: '<i class="gridfield-icon blog-icon-timer"></i> Publish at {date}'
|
||||||
TagCloudWidget:
|
TagCloudWidget:
|
||||||
|
Loading…
Reference in New Issue
Block a user