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 .= '<loc>'.$site->url().'</loc>';
$xml .= '</url>'; $xml .= '</url>';
// Get DB $published = $pages->getPublishedDB();
$pageNumber = 1; $statics = $pages->getStaticDB();
$numberOfItems = -1; $list = array_merge($published, $statics);
$onlyPublished = true;
$list = $pages->getList($pageNumber, $numberOfItems, $onlyPublished);
foreach ($list as $pageKey) { foreach ($list as $pageKey) {
try { try {