Fixed the URLs of the navbar
This commit is contained in:
parent
2c5643271d
commit
ce17d076aa
1 changed files with 3 additions and 3 deletions
|
@ -5,8 +5,8 @@
|
|||
</div>
|
||||
<div id="navbar" >
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="<?php echo isActive("/Routes.php");?>" ><a href="/Routes.php">Routes</a></li>
|
||||
<li class="<?php echo isActive("/Stops.php");?>"><a href="/Stops.php">Stops</a></li>
|
||||
<li class="<?php echo isActive("Routes.php");?>" ><a href="Routes.php">Routes</a></li>
|
||||
<li class="<?php echo isActive("Stops.php");?>"><a href="Stops.php">Stops</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -16,7 +16,7 @@
|
|||
<?php
|
||||
|
||||
function isActive($url){
|
||||
if ($_SERVER['PHP_SELF'] == $url){
|
||||
if (basename($_SERVER['PHP_SELF']) == $url){
|
||||
return ' active ';
|
||||
}
|
||||
return;
|
||||
|
|
Reference in a new issue