Переглянути джерело

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>';