wscott: The cms will now ping google with sitemap updates when pages are published or unpublished (merged from branches/gsoc)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41700 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-09-14 01:19:13 +00:00
parent e3fee8edf6
commit 1bff08f5d2

View File

@ -447,6 +447,8 @@ JS;
$record->write();
$record->publish("Stage", "Live");
Sitemap::Ping();
// Fix the sort order for this page's siblings
DB::query("UPDATE SiteTree_Live
INNER JOIN SiteTree ON SiteTree_Live.ID = SiteTree.ID
@ -671,6 +673,9 @@ HTML;
$page->write();
return $this->tellBrowserAboutPublicationChange($page, "Removed '$page->Title' from the published site");
Sitemap::Ping();
return $this->tellBrowserAboutPublicationChange($page, sprintf(_t('CMSMain.REMOVEDPAGE',"Removed '%s' from the published site"),$page->Title));
}