mirror of
https://github.com/sruupl/batflat.git
synced 2026-02-07 12:49:07 +01:00
Fix license verification
This commit is contained in:
@@ -254,7 +254,7 @@ function domain($with_protocol = true, $cut_www = false)
|
||||
{
|
||||
$url = parse_url(url());
|
||||
|
||||
if ($cut_www) {
|
||||
if ($cut_www && strpos($url['host'], 'www.') === 0) {
|
||||
$host = str_replace('www.', null, $url['host']);
|
||||
} else {
|
||||
$host = $url['host'];
|
||||
|
||||
Reference in New Issue
Block a user