Skip to content

Commit fe2fb01

Browse files
committed
fixed sitemap delete and rename issue
1 parent 49bd706 commit fe2fb01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Sitemap/Controller/Adminhtml/Sitemap/Delete.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function __construct(
5151
*/
5252
public function execute()
5353
{
54-
$directory = $this->filesystem->getDirectoryWrite(DirectoryList::ROOT);
54+
$directory = $this->filesystem->getDirectoryWrite(DirectoryList::PUB);
5555
// check if we know what should be deleted
5656
$id = $this->getRequest()->getParam('sitemap_id');
5757
if ($id) {

app/code/Magento/Sitemap/Controller/Adminhtml/Sitemap/Save.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ protected function validatePath(array $data)
128128
protected function clearSiteMap(\Magento\Sitemap\Model\Sitemap $model)
129129
{
130130
/** @var Filesystem $directory */
131-
$directory = $this->filesystem->getDirectoryWrite(DirectoryList::ROOT);
131+
$directory = $this->filesystem->getDirectoryWrite(DirectoryList::PUB);
132132

133133
if ($this->getRequest()->getParam('sitemap_id')) {
134134
$model->load($this->getRequest()->getParam('sitemap_id'));

0 commit comments

Comments
 (0)