Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Winkler <github@lw1.at>2018-10-10 22:10:24 +0300
committerThomas Steur <tsteur@users.noreply.github.com>2018-10-10 22:10:24 +0300
commit4fbead1a302205aa6472116cf56ed9194b9cdebe (patch)
treec4fc23b5cd6c90bd4d85d0b6b4af6fdbeee236bd /plugins/SEO
parentc2085ae81d704ad07c91bf2f5b9eaf3dfce90ef2 (diff)
fix SEO bing count (#13576)
Diffstat (limited to 'plugins/SEO')
-rw-r--r--plugins/SEO/Metric/Bing.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/SEO/Metric/Bing.php b/plugins/SEO/Metric/Bing.php
index e345d19cce..0c2892fb93 100644
--- a/plugins/SEO/Metric/Bing.php
+++ b/plugins/SEO/Metric/Bing.php
@@ -35,6 +35,7 @@ class Bing implements MetricsProvider
try {
$response = str_replace('&nbsp;', ' ', Http::sendHttpRequest($url, $timeout = 10, @$_SERVER['HTTP_USER_AGENT']));
+ $response = str_replace('&#160;', '', $response); // number uses nbsp as thousand seperator
if (preg_match('#([0-9,\.]+) results#i', $response, $p)) {
$pageCount = NumberFormatter::getInstance()->formatNumber((int)str_replace(array(',', '.'), '', $p[1]));