2011-06-04, 22:07:10
I think the save-sitemap hook is executed a bit too often because it is inside a loop. This is giving me troubles when including posts written by the News Manager plugin: they are all included as many times as there are pages. In file sitemap.php, lines 80-88:
should be:
Code:
}
//create xml file
$file = GSROOTPATH .'sitemap.xml';
exec_action('save-sitemap');
XMLsave($xml, $file);
}
}
should be:
Code:
}
}
//create xml file
$file = GSROOTPATH .'sitemap.xml';
exec_action('save-sitemap');
XMLsave($xml, $file);
}