MINOR Fixed usage of deprecated FormField->describe() API

This commit is contained in:
Ingo Schommer 2012-03-07 12:03:00 +01:00
parent 590027cfe3
commit b29a7540a2

View File

@ -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')
);
}