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
1 changed files with 5 additions and 0 deletions

View File

@ -446,6 +446,8 @@ JS;
//$record->PublishedByID = Member::currentUser()->ID;
$record->write();
$record->publish("Stage", "Live");
Sitemap::Ping();
// Fix the sort order for this page's siblings
DB::query("UPDATE SiteTree_Live
@ -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));
}