diff options
author | Michael Francis <edude03@gmail.com> | 2011-07-15 18:27:26 -0400 |
---|---|---|
committer | Michael Francis <edude03@gmail.com> | 2011-07-15 18:27:26 -0400 |
commit | a277c978e66c970231b3cf987d220f3476fe456e (patch) | |
tree | d328ff6bd72ba5d713ec9041f251416aa1f6f068 | |
parent | fe62c892074c6b52f5857d3f630c16a0420f477c (diff) | |
download | otakuhub-a277c978e66c970231b3cf987d220f3476fe456e.tar.xz |
Select proper link in the navbar
-rw-r--r-- | views/layouts/default.html.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/layouts/default.html.php b/views/layouts/default.html.php index 8d4a667..ee76dd1 100644 --- a/views/layouts/default.html.php +++ b/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>'; |