include sticky in sitemap #972
This commit is contained in:
parent
54868df652
commit
c16741808f
|
@ -57,10 +57,7 @@ class pluginSitemap extends Plugin {
|
||||||
$xml .= '<loc>'.$site->url().'</loc>';
|
$xml .= '<loc>'.$site->url().'</loc>';
|
||||||
$xml .= '</url>';
|
$xml .= '</url>';
|
||||||
|
|
||||||
$published = $pages->getPublishedDB();
|
$list = $pages->getList($pageNumber=1, $numberOfItems=-1, $published=true, $static=true, $sticky=true, $draft=false, $scheduled=false);
|
||||||
$statics = $pages->getStaticDB();
|
|
||||||
$list = array_merge($published, $statics);
|
|
||||||
|
|
||||||
foreach ($list as $pageKey) {
|
foreach ($list as $pageKey) {
|
||||||
try {
|
try {
|
||||||
// Create the page object from the page key
|
// Create the page object from the page key
|
||||||
|
|
Loading…
Reference in New Issue