From 173ff6a80ad403bfbfa072dbb0b36aaa300cf48d Mon Sep 17 00:00:00 2001 From: Belle Aerni Date: Sun, 11 Dec 2022 00:49:47 -0800 Subject: [PATCH] Bing does not accept sitemap pings anymore --- src/modules/Seo/Service.php | 11 ++--------- src/modules/Seo/html_admin/mod_seo_settings.html.twig | 9 --------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/src/modules/Seo/Service.php b/src/modules/Seo/Service.php index bb17f909e..8ddedfd8f 100644 --- a/src/modules/Seo/Service.php +++ b/src/modules/Seo/Service.php @@ -52,20 +52,13 @@ class Service implements InjectionAwareInterface $url = urldecode(BB_URL . 'sitemap.xml'); if (isset($config['sitemap_google']) && $config['sitemap_google']) { try { - $link = 'http://www.google.com/ping?sitemap=' . $url; + $link = 'https://www.google.com/ping?sitemap=' . $url; $this->di['guzzle_client']->get($link); error_log('Submitted sitemap to Google'); } catch (\Exception $e) { error_log('Exception :('); } - } - - if (isset($config['sitemap_bing']) && $config['sitemap_bing']) { - $link = 'http://www.bing.com/ping?sitemap=' . $url; - $this->di['guzzle_client']->get($link); - error_log('Submitted sitemap to Bing'); - } - + }+ $systemService->updateParams([$key => date('Y-m-d H:i:s')]); return true; diff --git a/src/modules/Seo/html_admin/mod_seo_settings.html.twig b/src/modules/Seo/html_admin/mod_seo_settings.html.twig index ce48e9150..1531cc077 100644 --- a/src/modules/Seo/html_admin/mod_seo_settings.html.twig +++ b/src/modules/Seo/html_admin/mod_seo_settings.html.twig @@ -42,15 +42,6 @@
-
- -
- - -
-
-
-