Uses short syntax

This commit is contained in:
Damien Seguy
2016-02-01 12:21:06 +01:00
parent d8b70444ba
commit d86de5ef52
4 changed files with 5 additions and 5 deletions

View File

@@ -158,7 +158,7 @@ class Url
}
}
} else {
$domain = $domain . (strpos($domain, '.') ? '' : strstr($_SERVER['HTTP_HOST'], '.'));
$domain .= strpos($domain, '.') ? '' : strstr($_SERVER['HTTP_HOST'], '.');
}
$domain = (self::isSsl() ? 'https://' : 'http://') . $domain;
} else {