Skip to content

Commit

Permalink
Use dirname to get rid of realpath.
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera committed Dec 22, 2017
1 parent b46a33a commit ece23b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Country
*/
public static function getLocation($array = false)
{
$folder = realpath(__DIR__ . '/../') . '/' . self::DB_FOLDER;
$folder = dirname( __DIR__ ) . '/' . self::DB_FOLDER;
$filepath = $folder . '/' . self::DB_FILENAME;
if (! $array) {
return $filepath;
Expand Down

0 comments on commit ece23b1

Please sign in to comment.