Version 4.7.23
This commit is contained in:
1 parent
7124a02564
commit
25ddeb65d6
1791 files changed
+76990
-44452
No files matched your search
@@ -467,12 +467,16 @@ class _GeoLocation
|
||||
* @brief Map
|
||||
*/
|
||||
protected $map;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get Requester Location
|
||||
*
|
||||
* @return \IPS\GeoLocation
|
||||
*/
|
||||
* @throws \BadFunctionCallException Service is not available
|
||||
* @throws \IPS\Http\Request\Exception Error communicating with external service
|
||||
* @throws \RuntimeException Error within the external service
|
||||
*/
|
||||
public static function getRequesterLocation(): \IPS\GeoLocation
|
||||
{
|
||||
return static::getByIp( \IPS\Request::i()->ipAddress() );
|
||||
|
||||
Reference in new issue
Block a user