Skip to content

Commit

Permalink
GEOIP is now installed via composer and pointer to autoloader is no l…
Browse files Browse the repository at this point in the history
…onger needed
  • Loading branch information
twoln committed Mar 22, 2024
1 parent 8004851 commit af335aa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion config/Master-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => '',
];
Expand Down
1 change: 0 additions & 1 deletion core/DeviceLocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit af335aa

Please sign in to comment.