diff --git a/tabs.php b/tabs.php index 2acb09c..e865bbf 100644 --- a/tabs.php +++ b/tabs.php @@ -11,7 +11,12 @@ $base_domain = $_SERVER['HTTP_HOST'] == "aclindsay.com"; foreach ($tabs as $name => $url) { - if ($base_domain && $url == $_SERVER['REQUEST_URI']) + if ($url == "/") { + if ($_SERVER['REQUEST_URI'] == "/") + echo "
  • Home
  • "; + else + echo "
  • Home
  • "; + } else if ($base_domain && strncmp($url, $_SERVER['REQUEST_URI'], strlen($url)) == 0) echo "
  • ".$name."
  • "; else echo "
  • ".$name."
  • ";