From c16741808f0a8dfa0710171dbb661d56a2f61e2f Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Thu, 28 Feb 2019 19:51:30 +0100 Subject: [PATCH] include sticky in sitemap #972 --- bl-plugins/sitemap/plugin.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bl-plugins/sitemap/plugin.php b/bl-plugins/sitemap/plugin.php index e4fc77e5..7121b3e9 100644 --- a/bl-plugins/sitemap/plugin.php +++ b/bl-plugins/sitemap/plugin.php @@ -57,10 +57,7 @@ class pluginSitemap extends Plugin { $xml .= ''.$site->url().''; $xml .= ''; - $published = $pages->getPublishedDB(); - $statics = $pages->getStaticDB(); - $list = array_merge($published, $statics); - + $list = $pages->getList($pageNumber=1, $numberOfItems=-1, $published=true, $static=true, $sticky=true, $draft=false, $scheduled=false); foreach ($list as $pageKey) { try { // Create the page object from the page key