From b29a7540a2bdaf235bbb31e1416b2e42b102cf3e Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 7 Mar 2012 12:03:00 +0100 Subject: [PATCH] MINOR Fixed usage of deprecated FormField->describe() API --- code/model/SiteTree.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/model/SiteTree.php b/code/model/SiteTree.php index f1a98f03..ca2d126a 100644 --- a/code/model/SiteTree.php +++ b/code/model/SiteTree.php @@ -2065,7 +2065,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid // "unpublish" $minorActions->push( FormAction::create('unpublish', _t('SiteTree.BUTTONUNPUBLISH', 'Unpublish'), 'delete') - ->describe(_t('SiteTree.BUTTONUNPUBLISHDESC', 'Remove this page from the published site')) + ->setDescription(_t('SiteTree.BUTTONUNPUBLISHDESC', 'Remove this page from the published site')) ->addExtraClass('ss-ui-action-destructive')->setAttribute('data-icon', 'unpublish') ); } @@ -2075,7 +2075,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid // "rollback" $minorActions->push( FormAction::create('rollback', _t('SiteTree.BUTTONCANCELDRAFT', 'Cancel draft changes'), 'delete') - ->describe(_t('SiteTree.BUTTONCANCELDRAFTDESC', 'Delete your draft and revert to the currently published page')) + ->setDescription(_t('SiteTree.BUTTONCANCELDRAFTDESC', 'Delete your draft and revert to the currently published page')) ->addExtraClass('delete')->setAttribute('data-icon', 'delete') ); }