#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:
Andrew O'Neil 2007-11-12 02:09:31 +00:00
parent 8360e8f8b8
commit 5165e64e9d

View File

@ -52,8 +52,8 @@ class Sitemap extends Controller {
}
static function ping() {
//Don't ping if the site has disabled it
if(!Sitemap::$pings)
//Don't ping if the site has disabled it, or if the site is in dev mode
if(!Sitemap::$pings || Director::isDev())
return;
$location = urlencode(Director::absoluteBaseURL() . '/sitemap.xml');