Parcourir la source

Select proper link in the navbar

Michael Francis il y a 14 ans
Parent
commit
a277c978e6
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      views/layouts/default.html.php

+ 1 - 1
views/layouts/default.html.php

@@ -50,7 +50,7 @@ use \lithium\security\Auth;
 	<ul>
 	';
 	foreach ($links as $name => $path) {
-		if ($path == '/')
+		if (($path == '/') || ($name == $this->request()->controller))
 			echo '<li class="current">';
 		else
 			echo '<li>';