mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 02:57:45 +00:00
Basic for for #262
Signed-off-by: James Cole <thegrumpydictator@gmail.com>
This commit is contained in:
@@ -87,7 +87,8 @@ class General extends Twig_Extension
|
||||
'activeRoutePartial', function () : string {
|
||||
$args = func_get_args();
|
||||
$route = $args[0]; // name of the route.
|
||||
if (!(strpos(Route::getCurrentRoute()->getName(), $route) === false)) {
|
||||
$name = Route::getCurrentRoute()->getName() ?? '';
|
||||
if (!(strpos($name, $route) === false)) {
|
||||
return 'active';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user