Skip to content

Commit 11af79f

Browse files
committed
update the filename to use official php class name
1 parent 0d58432 commit 11af79f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libraries/ip2location/ip2location.class.php renamed to libraries/ip2location/IP2Location.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,9 +1740,9 @@ public function lookup($ip, $fields = null, $asNamed = true) {
17401740
}
17411741
break;
17421742
case self::COUNTRY_NAME:
1743-
if (!$done[self::COUNTRY_CODE]) {
1744-
$results[self::COUNTRY_CODE] = $this->readCountryNameAndCode($pointer)[0];
1745-
$done[self::COUNTRY_CODE] = true;
1743+
if (!$done[self::COUNTRY_NAME]) {
1744+
$results[self::COUNTRY_NAME] = $this->readCountryNameAndCode($pointer)[0];
1745+
$done[self::COUNTRY_NAME] = true;
17461746
}
17471747
break;
17481748
case self::REGION_NAME:

libraries/ip2location_lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
define('IP2LOCATION_DATABASE', dirname(__FILE__) . '/ip2location/IP2LOCATION-DB.BIN');
66
}
77

8-
require_once('ip2location/ip2location.class.php');
8+
require_once('ip2location/IP2Location.php');
99

1010
class IP2Location_lib {
1111
private $database;

0 commit comments

Comments
 (0)