Simplify code
This commit is contained in:
parent
58cec97358
commit
64026ed979
|
@ -455,9 +455,7 @@ class Contact
|
||||||
{
|
{
|
||||||
if (!parse_url($url, PHP_URL_SCHEME)) {
|
if (!parse_url($url, PHP_URL_SCHEME)) {
|
||||||
$addr_parts = explode('@', $url);
|
$addr_parts = explode('@', $url);
|
||||||
if (count($addr_parts) == 2) {
|
return (count($addr_parts) == 2) && ($addr_parts[1] == DI::baseUrl()->getHostname());
|
||||||
return $addr_parts[1] == DI::baseUrl()->getHostname();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Strings::compareLink(self::getBasepath($url, true), DI::baseUrl());
|
return Strings::compareLink(self::getBasepath($url, true), DI::baseUrl());
|
||||||
|
|
Loading…
Reference in a new issue