Skip to content

Commit

Permalink
Update GeoIPCountry.php
Browse files Browse the repository at this point in the history
  • Loading branch information
iriven committed Apr 24, 2017
1 parent 8e172e2 commit 3acb6d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GeoIPCountry.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct()
{
$this->PackageLocation = realpath($this->getStoragePath());
$this->DataLocation = realpath($this->getStoragePath(false));
$this->preload();
$this->prepareLookup();
return $this;
}

Expand Down Expand Up @@ -134,7 +134,7 @@ public function isReservedIP($ip=null)
/**
* @return $this
*/
private function preload()
private function prepareLookup()
{
if(count(glob($this->DataLocation.'/[0-9]*.php'))!==256)
{
Expand Down

0 comments on commit 3acb6d4

Please sign in to comment.