File: 0026-Disable-GeoIP.patch

package info (click to toggle)
matomo 5.3.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 72,652 kB
  • sloc: php: 230,070; javascript: 103,748; python: 196; xml: 188; sh: 156; makefile: 13; sql: 10
file content (23 lines) | stat: -rw-r--r-- 769 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: William Desportes <williamdes@wdes.fr>
Date: Tue, 21 Jan 2025 01:18:25 +0100
Subject: Disable GeoIP

Origin: vendor
Forwarded: not-needed
---
 plugins/UserCountry/UserCountry.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/plugins/UserCountry/UserCountry.php b/plugins/UserCountry/UserCountry.php
index 313c54e..00d65bf 100644
--- a/plugins/UserCountry/UserCountry.php
+++ b/plugins/UserCountry/UserCountry.php
@@ -106,6 +106,7 @@ class UserCountry extends \Piwik\Plugin
 
     public static function isGeoLocationAdminEnabled()
     {
-        return (bool) Config::getInstance()->General['enable_geolocation_admin'];
+        return false;
+        //return (bool) Config::getInstance()->General['enable_geolocation_admin'];
     }
 }