Permalink
Browse files

Ignore main www domain.

  • Loading branch information...
1 parent 5c68f3d commit 73522c78bb4fe66e66fe7e8cda0617bdc70ff487 @dracos dracos committed Mar 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 phplib/fyr.php
View
@@ -41,7 +41,7 @@
$cobrand = null;
if (array_key_exists('HTTP_HOST', $_SERVER)) {
$host_parts = explode('.', $_SERVER['HTTP_HOST'], 2);
- if ($host_parts[1] == OPTION_WEB_DOMAIN) {
+ if ($host_parts[1] == OPTION_WEB_DOMAIN && $host_parts[0] != 'www') {
$cobrand = $host_parts[0];
}
}

0 comments on commit 73522c7

Please sign in to comment.