File tree Expand file tree Collapse file tree 4 files changed +2
-6
lines changed
app/code/Magento/Cms/Controller/Adminhtml Expand file tree Collapse file tree 4 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,6 @@ public function execute()
76
76
$ this ->selectedDelete ($ data ['selected ' ]);
77
77
} else {
78
78
$ this ->messageManager ->addError (__ ('Please select item(s). ' ));
79
- $ resultRedirect ->setPath (static ::REDIRECT_URL );
80
79
}
81
80
} catch (\Exception $ e ) {
82
81
$ this ->messageManager ->addError ($ e ->getMessage ());
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ protected function _initAction()
72
72
/**
73
73
* Edit CMS page
74
74
*
75
- * @return \Magento\Backend\Model\View\Result\Page|\Magento\Framework\Controller \Result\Redirect
75
+ * @return \Magento\Backend\Model\View\Result\Page|\Magento\Backend\Model\View \Result\Redirect
76
76
* @SuppressWarnings(PHPMD.NPathComplexity)
77
77
*/
78
78
public function execute ()
@@ -86,7 +86,7 @@ public function execute()
86
86
$ model ->load ($ id );
87
87
if (!$ model ->getId ()) {
88
88
$ this ->messageManager ->addError (__ ('This page no longer exists. ' ));
89
- /** \Magento\Framework\Controller \Result\Redirect $resultRedirect */
89
+ /** \Magento\Backend\Model\View \Result\Redirect $resultRedirect */
90
90
$ resultRedirect = $ this ->resultRedirectFactory ->create ();
91
91
92
92
return $ resultRedirect ->setPath ('*/*/ ' );
Original file line number Diff line number Diff line change @@ -38,8 +38,6 @@ public function __construct(
38
38
/**
39
39
* Template directives callback
40
40
*
41
- * todo: move this to some model
42
- *
43
41
* @return \Magento\Framework\Controller\Result\Raw
44
42
*/
45
43
public function execute ()
Original file line number Diff line number Diff line change 10
10
11
11
class DeleteFiles extends \Magento \Cms \Controller \Adminhtml \Wysiwyg \Images
12
12
{
13
-
14
13
/**
15
14
* @var \Magento\Framework\Controller\Result\JSONFactory
16
15
*/
You can’t perform that action at this time.
0 commit comments