mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
#1710 - No evidence that sitemap.xml pings are disabled in devmode. You cover will be blown!
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@44620 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
8360e8f8b8
commit
5165e64e9d
@ -52,8 +52,8 @@ class Sitemap extends Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static function ping() {
|
static function ping() {
|
||||||
//Don't ping if the site has disabled it
|
//Don't ping if the site has disabled it, or if the site is in dev mode
|
||||||
if(!Sitemap::$pings)
|
if(!Sitemap::$pings || Director::isDev())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$location = urlencode(Director::absoluteBaseURL() . '/sitemap.xml');
|
$location = urlencode(Director::absoluteBaseURL() . '/sitemap.xml');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user