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
path: root/core
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2022-01-26 22:50:47 +0300
committerGitHub <noreply@github.com>2022-01-26 22:50:47 +0300
commit2ba0f7a67cb4aa336ef312e2850de1f325adcb69 (patch)
tree62bbc9cd0b444607009d73008c33f4b58d97a120 /core
parenta8e12af576ac4c5c33975e63865f02370a00c6d9 (diff)
Allow disabling the usage of the default geolocation provider as fallback (#18634)
* Allow disabling the usage of the default geolocation provider as fallback * Improve naming * add changelog entry * Introduce a disabled provider and setting to disable the default provider * fix tests * update changelog
Diffstat (limited to 'core')
-rw-r--r--core/Common.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Common.php b/core/Common.php
index 08751d5cbe..9a8d45d6b7 100644
--- a/core/Common.php
+++ b/core/Common.php
@@ -1171,7 +1171,7 @@ class Common
{
$cache = TrackerCache::getCacheGeneral();
return empty($cache['currentLocationProviderId'])
- ? DefaultProvider::ID
+ ? Plugins\UserCountry\LocationProvider::getDefaultProviderId()
: $cache['currentLocationProviderId'];
}