mirror of
https://github.com/friendica/friendica
synced 2025-05-05 17:04:11 +02:00
Some more deprecated function calls are replaced
This commit is contained in:
parent
bd6616e84f
commit
e12f92e516
30 changed files with 101 additions and 163 deletions
|
@ -648,19 +648,6 @@ class Network
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the given URL is a local link
|
||||
*
|
||||
* @param string $url
|
||||
*
|
||||
* @return bool
|
||||
* @deprecated since 2023.09, please use BaseUrl->isLocalUrl or BaseUrl->isLocalUri instead.
|
||||
*/
|
||||
public static function isLocalLink(string $url): bool
|
||||
{
|
||||
return DI::baseUrl()->isLocalUrl($url);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the given URL is a valid HTTP/HTTPS URL
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue