diff options
author | Stefan Giehl <stefan@matomo.org> | 2022-01-26 22:50:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-26 22:50:47 +0300 |
commit | 2ba0f7a67cb4aa336ef312e2850de1f325adcb69 (patch) | |
tree | 62bbc9cd0b444607009d73008c33f4b58d97a120 /core | |
parent | a8e12af576ac4c5c33975e63865f02370a00c6d9 (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.php | 2 |
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']; } |