Explorar el Código

Select proper link in the navbar

Michael Francis hace 14 años
padre
commit
a277c978e6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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>';