mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-30 04:07:07 +09:00
Bing does not accept sitemap pings anymore
This commit is contained in:
1 parent
b84a5638fc
commit
173ff6a80a
2 files changed
+2
-18
No files matched your search
@@ -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;
|
||||
|
||||
@@ -42,15 +42,6 @@
|
||||
<div class="fix"></div>
|
||||
</div>
|
||||
|
||||
<div class="rowElem">
|
||||
<label>{{ 'Ping sitemap to Bing'|trans }}</label>
|
||||
<div class="formRight">
|
||||
<input type="radio" name="sitemap_bing" value="1" {% if params.sitemap_bing == "1" %}checked="checked"{% endif %}/><label>{{ 'Yes'|trans }}</label>
|
||||
<input type="radio" name="sitemap_bing" value="0" {% if not params.sitemap_bing %}checked="checked"{% endif %}/><label>{{ 'No'|trans }}</label>
|
||||
</div>
|
||||
<div class="fix"></div>
|
||||
</div>
|
||||
|
||||
<input type="submit" value="{{ 'Update'|trans }}" class="greyishBtn submitForm" />
|
||||
<input type="hidden" name="ext" value="mod_seo" />
|
||||
</fieldset>
|
||||
|
||||
Reference in new issue
Block a user