mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
FIX Remove broken restore batch action
This commit is contained in:
parent
117dc25dc9
commit
687c69c515
@ -9,12 +9,21 @@ use SilverStripe\ORM\ArrayList;
|
||||
use SilverStripe\ORM\SS_List;
|
||||
use SilverStripe\Versioned\Versioned;
|
||||
use SilverStripe\Security\Permission;
|
||||
use SilverStripe\Dev\Deprecation;
|
||||
|
||||
/**
|
||||
* Batch restore of pages
|
||||
*
|
||||
* @deprecated 5.3.0 Will be removed without equivalent functionality to replace it
|
||||
*/
|
||||
class CMSBatchAction_Restore extends CMSBatchAction
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
Deprecation::withNoReplacement(function () {
|
||||
Deprecation::notice('5.3.0', 'Will be removed without equivalent functionality to replace it', Deprecation::SCOPE_CLASS);
|
||||
});
|
||||
}
|
||||
|
||||
public function getActionTitle()
|
||||
{
|
||||
|
@ -11,7 +11,6 @@ use SilverStripe\Admin\LeftAndMainFormRequestHandler;
|
||||
use SilverStripe\Admin\Navigator\SilverStripeNavigator;
|
||||
use SilverStripe\CMS\BatchActions\CMSBatchAction_Archive;
|
||||
use SilverStripe\CMS\BatchActions\CMSBatchAction_Publish;
|
||||
use SilverStripe\CMS\BatchActions\CMSBatchAction_Restore;
|
||||
use SilverStripe\CMS\BatchActions\CMSBatchAction_Unpublish;
|
||||
use SilverStripe\CMS\Controllers\CMSSiteTreeFilter_Search;
|
||||
use SilverStripe\CMS\Model\CurrentPageIdentifier;
|
||||
@ -188,7 +187,6 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
||||
|
||||
Requirements::add_i18n_javascript('silverstripe/cms: client/lang', false);
|
||||
|
||||
CMSBatchActionHandler::register('restore', CMSBatchAction_Restore::class);
|
||||
CMSBatchActionHandler::register('archive', CMSBatchAction_Archive::class);
|
||||
CMSBatchActionHandler::register('unpublish', CMSBatchAction_Unpublish::class);
|
||||
CMSBatchActionHandler::register('publish', CMSBatchAction_Publish::class);
|
||||
|
Loading…
Reference in New Issue
Block a user