FIX Fix invalid SiteTree unpublish action declaration

This commit is contained in:
Sergey Shevchenko 2021-11-13 09:50:30 +13:00
parent bd8ba74950
commit 7aeb85cc52
1 changed files with 1 additions and 1 deletions

View File

@ -2366,7 +2366,7 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
// "unpublish"
if ($isPublished && $isOnDraft && $canUnpublish) {
$moreOptions->push(
FormAction::create('unpublish', _t(__CLASS__.'.BUTTONUNPUBLISH', 'Unpublish'), 'delete')
FormAction::create('unpublish', _t(__CLASS__.'.BUTTONUNPUBLISH', 'Unpublish'))
->setDescription(_t(__CLASS__.'.BUTTONUNPUBLISHDESC', 'Remove this page from the published site'))
->addExtraClass('btn-secondary' . ($this->isHomePage() ? ' homepage-warning' : ''))
);