Fix menu view.

This commit is contained in:
James Cole
2018-05-29 06:30:25 +02:00
parent 4ad68b7dfa
commit 0a007b1e6e
2 changed files with 5 additions and 3 deletions

View File

@@ -106,7 +106,7 @@ class General extends Twig_Extension
$what = $args[2]; // name of the route.
$activeWhat = $context['what'] ?? false;
if ($what === $activeWhat && !(false === strpos(Route::getCurrentRoute()->getName(), $route))) {
if ($what === $activeWhat && !(false === stripos(Route::getCurrentRoute()->getName(), $route))) {
return 'active';
}