mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
Make sitemap sending configurable
This commit is contained in:
parent
fdebe81abf
commit
1b443d6f6a
3 changed files with 17 additions and 11 deletions
|
@ -17,6 +17,7 @@ $map->createSitemap();
|
|||
if (file_exists(SITEMAP_DIR . '/sitemap.xml')) {
|
||||
$map_link = make_url('sitemap/sitemap.xml');
|
||||
|
||||
$map->sendSitemap('http://google.com/webmasters/sitemaps/ping?sitemap=', $map_link);
|
||||
$map->sendSitemap('http://www.bing.com/ping?sitemap=', $map_link);
|
||||
foreach ($bb_cfg['sitemap_sending'] as $source_name => $source_link) {
|
||||
$map->sendSitemap($source_link, $map_link);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue