mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
e3fee8edf6
commit
1bff08f5d2
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user