mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Change remaining references to 'Sitemap' to 'GoogleSitemap'
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@46088 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
f02ba8d1cb
commit
9b4dabc331
@ -61,7 +61,7 @@ class GoogleSitemap extends Controller {
|
||||
|
||||
static function ping() {
|
||||
//Don't ping if the site has disabled it, or if the site is in dev mode
|
||||
if(!Sitemap::$pings || Director::isDev())
|
||||
if(!GoogleSitemap::$pings || Director::isDev())
|
||||
return;
|
||||
|
||||
$location = urlencode(Director::absoluteBaseURL() . '/sitemap.xml');
|
||||
@ -77,7 +77,7 @@ class GoogleSitemap extends Controller {
|
||||
/**
|
||||
* Disables pings to google when the sitemap changes
|
||||
* To use this, in your _config.php file simply include the line
|
||||
* Sitemap::DisableGoogleNotification();
|
||||
* GoogleSitemap::DisableGoogleNotification();
|
||||
*/
|
||||
static function DisableGoogleNotification() {
|
||||
self::$pings = false;
|
||||
|
Loading…
Reference in New Issue
Block a user