Fix issue with selected list highlighting, fixes #20

This commit is contained in:
Timothy Warren 2017-01-25 12:13:37 -05:00
parent 5f6c1f9f48
commit 1818bf105d

View File

@ -100,8 +100,8 @@ class MenuGenerator extends UrlGenerator {
foreach ($menu_config as $title => $path)
{
$has = $this->string($path)->contains($this->path());
$selected = ($has && strlen($path) >= strlen($this->path()));
$has = $this->string($this->path())->contains($path);
$selected = ($has && strlen($this->path()) >= strlen($path));
$link = $this->helper->a($this->url($path), $title);