@@ -1517,11 +1517,11 @@ |
||
1517 | 1517 | { |
1518 | 1518 | $hostname = strtolower(trim($hostname)); |
1519 | 1519 | $count = substr_count($hostname, '.'); |
1520 | - if($count === 2){ |
|
1521 | - if(strlen(explode('.', $hostname)[1]) > 3) |
|
1520 | + if ($count === 2) { |
|
1521 | + if (strlen(explode('.', $hostname)[1]) > 3) |
|
1522 | 1522 | $hostname = explode('.', $hostname, 2)[1]; |
1523 | 1523 | } |
1524 | - else if($count > 2) |
|
1524 | + else if ($count > 2) |
|
1525 | 1525 | $hostname = get_domain(explode('.', $hostname, 2)[1]); |
1526 | 1526 | |
1527 | 1527 | return $hostname; |