File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
app/code/Magento/Sitemap/Controller/Adminhtml/Sitemap Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ public function __construct(
51
51
*/
52
52
public function execute ()
53
53
{
54
- $ directory = $ this ->filesystem ->getDirectoryWrite (DirectoryList::ROOT );
54
+ $ directory = $ this ->filesystem ->getDirectoryWrite (DirectoryList::PUB );
55
55
// check if we know what should be deleted
56
56
$ id = $ this ->getRequest ()->getParam ('sitemap_id ' );
57
57
if ($ id ) {
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ protected function validatePath(array $data)
128
128
protected function clearSiteMap (\Magento \Sitemap \Model \Sitemap $ model )
129
129
{
130
130
/** @var Filesystem $directory */
131
- $ directory = $ this ->filesystem ->getDirectoryWrite (DirectoryList::ROOT );
131
+ $ directory = $ this ->filesystem ->getDirectoryWrite (DirectoryList::PUB );
132
132
133
133
if ($ this ->getRequest ()->getParam ('sitemap_id ' )) {
134
134
$ model ->load ($ this ->getRequest ()->getParam ('sitemap_id ' ));
You can’t perform that action at this time.
0 commit comments