Add to sitemap plugin static pages. #837

This commit is contained in:
Diego Najar 2018-10-30 22:25:09 +01:00
parent 2c69c55357
commit 03300266f2
1 changed files with 3 additions and 5 deletions

View File

@ -57,11 +57,9 @@ class pluginSitemap extends Plugin {
$xml .= '<loc>'.$site->url().'</loc>';
$xml .= '</url>';
// Get DB
$pageNumber = 1;
$numberOfItems = -1;
$onlyPublished = true;
$list = $pages->getList($pageNumber, $numberOfItems, $onlyPublished);
$published = $pages->getPublishedDB();
$statics = $pages->getStaticDB();
$list = array_merge($published, $statics);
foreach ($list as $pageKey) {
try {