Browse Source

Fixed get_subdomain not returning home dir for both blank and www

pull/24/head
Teknikode 8 years ago
parent
commit
03d9a816ed
  1. 2
      includes/common.php

2
includes/common.php

@ -48,7 +48,7 @@ function extract_subdomains($domain) @@ -48,7 +48,7 @@ function extract_subdomains($domain)
function get_subdomain($CONF)
{
$sub = extract_subdomains($_SERVER['HTTP_HOST']);
if ($sub == "")
if ($sub == "" || $sub == "www")
{
$sub = $CONF['default_page'];
}

Loading…
Cancel
Save