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 .= '<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 {
|
||||||
|
|
Loading…
Reference in New Issue