Pārlūkot izejas kodu

Select proper link in the navbar

Michael Francis 14 gadi atpakaļ
vecāks
revīzija
a277c978e6
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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>';