mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #2046 from dhensby/pulls/3/php7.2
Add PHP7.2 support
This commit is contained in:
commit
a3edbd6d34
@ -14,7 +14,7 @@ addons:
|
||||
|
||||
env:
|
||||
global:
|
||||
- CORE_RELEASE=3.5
|
||||
- CORE_RELEASE=3
|
||||
|
||||
matrix:
|
||||
include:
|
||||
|
@ -422,7 +422,7 @@ JS
|
||||
$actions = new FieldList(
|
||||
FormAction::create('doSearch', _t('CMSMain_left_ss.APPLY_FILTER', 'Apply Filter'))
|
||||
->addExtraClass('ss-ui-action-constructive'),
|
||||
Object::create('ResetFormAction', 'clear', _t('CMSMain_left_ss.RESET', 'Reset'))
|
||||
SS_Object::create('ResetFormAction', 'clear', _t('CMSMain_left_ss.RESET', 'Reset'))
|
||||
);
|
||||
|
||||
$form = new Form($this, 'filter', $fields, $actions);
|
||||
|
@ -368,7 +368,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
||||
$actions = new FieldList(
|
||||
FormAction::create('doSearch', _t('CMSMain_left_ss.APPLY_FILTER', 'Search'))
|
||||
->addExtraClass('ss-ui-action-constructive'),
|
||||
Object::create('ResetFormAction', 'clear', _t('CMSMain_left_ss.CLEAR_FILTER', 'Clear'))
|
||||
SS_Object::create('ResetFormAction', 'clear', _t('CMSMain_left_ss.CLEAR_FILTER', 'Clear'))
|
||||
);
|
||||
|
||||
// Use <button> to allow full jQuery UI styling on the all of the Actions
|
||||
|
@ -13,7 +13,7 @@
|
||||
* @package cms
|
||||
* @subpackage content
|
||||
*/
|
||||
abstract class CMSSiteTreeFilter extends Object implements LeftAndMain_SearchFilter {
|
||||
abstract class CMSSiteTreeFilter extends SS_Object implements LeftAndMain_SearchFilter {
|
||||
|
||||
/**
|
||||
* @var Array Search parameters, mostly properties on {@link SiteTree}.
|
||||
|
@ -196,7 +196,7 @@ class SilverStripeNavigatorItem extends ViewableData {
|
||||
* @return boolean
|
||||
*/
|
||||
public function isArchived() {
|
||||
if(!Object::has_extension($this->record->ClassName, 'Versioned')) return false;
|
||||
if(!SS_Object::has_extension($this->record->ClassName, 'Versioned')) return false;
|
||||
|
||||
if(!isset($this->record->_cached_isArchived)) {
|
||||
$baseTable = ClassInfo::baseDataClass($this->record->class);
|
||||
@ -294,7 +294,7 @@ class SilverStripeNavigatorItem_StageLink extends SilverStripeNavigatorItem {
|
||||
|
||||
public function canView($member = null) {
|
||||
return (
|
||||
Object::has_extension($this->record->ClassName, 'Versioned')
|
||||
SS_Object::has_extension($this->record->ClassName, 'Versioned')
|
||||
&& $this->getDraftPage()
|
||||
// Don't follow redirects in preview, they break the CMS editing form
|
||||
&& !($this->record instanceof RedirectorPage)
|
||||
@ -351,7 +351,7 @@ class SilverStripeNavigatorItem_LiveLink extends SilverStripeNavigatorItem {
|
||||
|
||||
public function canView($member = null) {
|
||||
return (
|
||||
Object::has_extension($this->record->ClassName, 'Versioned')
|
||||
SS_Object::has_extension($this->record->ClassName, 'Versioned')
|
||||
&& $this->getLivePage()
|
||||
// Don't follow redirects in preview, they break the CMS editing form
|
||||
&& !($this->record instanceof RedirectorPage)
|
||||
@ -418,7 +418,7 @@ class SilverStripeNavigatorItem_ArchiveLink extends SilverStripeNavigatorItem {
|
||||
|
||||
public function canView($member = null) {
|
||||
return (
|
||||
Object::has_extension($this->record->ClassName, 'Versioned')
|
||||
SS_Object::has_extension($this->record->ClassName, 'Versioned')
|
||||
&& $this->isArchived()
|
||||
// Don't follow redirects in preview, they break the CMS editing form
|
||||
&& !($this->record instanceof RedirectorPage)
|
||||
|
Loading…
Reference in New Issue
Block a user