Skip to content

Commit

Permalink
Remove function endsWidth as it is not needed anymore
Browse files Browse the repository at this point in the history
It is replaced by the try catch statement for commit b30bc08
  • Loading branch information
jorianvo committed Jun 18, 2015
1 parent b30bc08 commit f137bd3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/log.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,6 @@ private static function IpToCountry($ip) {
$country = "Unknown";
}

// This function will check if $haystack ends with $needle, if so it will return true, else false
// substr compares $haystack from offset -strlen($needle) (thus from the end of the string)
// up to the end of $haystack
// Originally found at http://theoryapp.com/string-startswith-and-endswith-in-php/
private static function endsWith($haystack, $needle) {
return substr_compare($haystack, $needle, -strlen($needle)) === 0;
return $country;
}
}

0 comments on commit f137bd3

Please sign in to comment.