From 5165e64e9d6559ab11085374519114cc6ec89c13 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Mon, 12 Nov 2007 02:09:31 +0000 Subject: [PATCH] #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 --- misc/Sitemap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/Sitemap.php b/misc/Sitemap.php index bb862805f..886622a19 100755 --- a/misc/Sitemap.php +++ b/misc/Sitemap.php @@ -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');