Преглед изворни кода

Select proper link in the navbar

Michael Francis пре 14 година
родитељ
комит
a277c978e6
1 измењених фајлова са 1 додато и 1 уклоњено
  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>';