Skip to content

Commit 2daf9cf

Browse files
author
bohdan
committed
checked on m2.1.4, and fixed mistakes
1 parent a1a623e commit 2daf9cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Model/Sitemap.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected function _initSitemapItems()
3636
parent::_initSitemapItems();
3737

3838
$sitemapItems = [];
39-
if ($sitemapConfig->isEnabledSitemap('index_page')) {
39+
if ($sitemapConfig->isEnabledSitemap(SitemapConfigInterface::HOME_PAGE)) {
4040
$sitemapItems[] = new \Magento\Framework\DataObject(
4141
[
4242
'changefreq' => $sitemapConfig->getFrequency(SitemapConfigInterface::HOME_PAGE),
@@ -55,7 +55,7 @@ protected function _initSitemapItems()
5555
);
5656
}
5757

58-
if ($sitemapConfig->isEnabledSitemap('categories_pages')) {
58+
if ($sitemapConfig->isEnabledSitemap(SitemapConfigInterface::CATEGORIES_PAGE)) {
5959
$sitemapItems[] = new \Magento\Framework\DataObject(
6060
[
6161
'changefreq' => $sitemapConfig->getFrequency(SitemapConfigInterface::CATEGORIES_PAGE),
@@ -69,7 +69,7 @@ protected function _initSitemapItems()
6969
);
7070
}
7171

72-
if ($sitemapConfig->isEnabledSitemap('posts_pages')) {
72+
if ($sitemapConfig->isEnabledSitemap(SitemapConfigInterface::POSTS_PAGE)) {
7373
$sitemapItems[] = new \Magento\Framework\DataObject(
7474
[
7575
'changefreq' => $sitemapConfig->getFrequency(SitemapConfigInterface::POSTS_PAGE),

0 commit comments

Comments
 (0)