Skip to content

Commit

Permalink
fix sitemap for blog, group, user, file, event
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit1290 committed Apr 8, 2019
1 parent d45acfb commit c87547a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions views/default/resources/auto_sitemap/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@
case 'blog':
case 'file':
case 'event':

$urls = auto_sitemap_getEntityUrls( $page[0] );
$urls = auto_sitemap_getEntityUrls( $type );

// if this entity is not active in settings, then sitemap doesn't exist
if ( ! elgg_get_plugin_setting($page[0] . '_url','auto_sitemap') ){
if ( ! elgg_get_plugin_setting($type . '_url','auto_sitemap') ){
return false;

}else{
Expand Down

0 comments on commit c87547a

Please sign in to comment.