Skip to content

Commit

Permalink
[newsfeeds] don't generate image sitemap
Browse files Browse the repository at this point in the history
Signed-off-by: Sven Schultschik <[email protected]>
  • Loading branch information
svanschu committed Nov 30, 2023
1 parent aed9f32 commit 0998765
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plugins/schuweb_sitemap/newsfeeds/newsfeeds.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ static function prepareMenuItem(&$node, &$params)

static function getTree(&$sitemap, &$parent, &$params)
{
//Image sitemap does not make sense for newsfeeds
if ($sitemap->isImagesitemap())
return false;

$newsfeed_query = parse_url($parent->link);
parse_str(html_entity_decode($newsfeed_query['query']), $newsfeed_vars);
$view = ArrayHelper::getValue($newsfeed_vars, 'view', 0);
Expand Down

0 comments on commit 0998765

Please sign in to comment.