Add to sitemap plugin static pages. #837
This commit is contained in:
parent
2c69c55357
commit
03300266f2
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user