diff --git a/config/Master-template.php b/config/Master-template.php index e54661b54..4ec84a6c5 100644 --- a/config/Master-template.php +++ b/config/Master-template.php @@ -126,7 +126,6 @@ class Master */ const GEOIP = [ 'version' => 2, - 'geoip2-path-to-autoloader' => '/usr/share/GeoIP2/vendor/autoload.php', 'geoip2-path-to-db' => '/usr/share/GeoIP2/DB/GeoLite2-City.mmdb', 'geoip2-license-key' => '', ]; diff --git a/core/DeviceLocation.php b/core/DeviceLocation.php index 6b109f8d8..fa9e8de26 100644 --- a/core/DeviceLocation.php +++ b/core/DeviceLocation.php @@ -92,7 +92,6 @@ private static function locateDevice2() if (\config\Master::GEOIP['version'] != 2) { return ['status' => 'error', 'error' => 'Function for GEOIPv2 called, but config says this is not the version to use!']; } - include_once \config\Master::GEOIP['geoip2-path-to-autoloader']; $reader = new Reader(\config\Master::GEOIP['geoip2-path-to-db']); $host = filter_input(INPUT_SERVER, 'REMOTE_ADDR', FILTER_VALIDATE_IP); try {