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(
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 ) {
Original file line number Diff line number Diff 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 ' ));
You can’t perform that action at this time.
0 commit comments