From 59c8237efde5340e24af6ca7c726f3845ae2469d Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Sun, 2 Dec 2007 21:22:43 +0000 Subject: [PATCH] Change remaining references to 'Sitemap' to 'GoogleSitemap' git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@46088 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CMSMain.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/code/CMSMain.php b/code/CMSMain.php index 41031cc3..b83f29fd 100644 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -492,10 +492,8 @@ JS; //$record->PublishedByID = Member::currentUser()->ID; $record->write(); $record->publish("Stage", "Live"); - - //TODO: This has been fixed in 2.2-rc2 and need to be merged back to trunk, - // for now just comment it out. - //Sitemap::ping(); + + GoogleSitemap::ping(); // Fix the sort order for this page's siblings DB::query("UPDATE SiteTree_Live @@ -721,7 +719,7 @@ HTML; $page->Status = "Unpublished"; $page->write(); - Sitemap::ping(); + GoogleSitemap::ping(); return $this->tellBrowserAboutPublicationChange($page, sprintf(_t('CMSMain.REMOVEDPAGE',"Removed '%s' from the published site"),$page->Title)); }