Skip to content

Commit 7971d4c

Browse files
committed
ACP2E-3532: Sitemap Generation Warnings
1 parent 659c431 commit 7971d4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Sitemap/Model/Sitemap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ public function generateXml()
477477

478478
$this->_finalizeSitemap();
479479

480-
if ($this->_sitemapIncrement == -1) {
480+
if ($this->_sitemapIncrement == 1) {
481481
// In case when only one increment file was created use it as default sitemap
482482
$path = $this->getFilePath($this->_getCurrentSitemapFilename($this->_sitemapIncrement));
483483
$destination = $this->getFilePath($this->getSitemapFilename());

0 commit comments

Comments
 (0)