mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 09:22:33 +00:00
Removed unnecessary html tags. [skip ci]
This commit is contained in:
@@ -204,10 +204,10 @@ class General extends Twig_Extension
|
|||||||
$route = $args[0]; // name of the route.
|
$route = $args[0]; // name of the route.
|
||||||
|
|
||||||
if (Route::getCurrentRoute()->getName() == $route) {
|
if (Route::getCurrentRoute()->getName() == $route) {
|
||||||
return 'active because-route-matches-strict';
|
return 'active';
|
||||||
}
|
}
|
||||||
|
|
||||||
return 'not-xxx-at-all';
|
return '';
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -225,10 +225,10 @@ class General extends Twig_Extension
|
|||||||
$args = func_get_args();
|
$args = func_get_args();
|
||||||
$route = $args[0]; // name of the route.
|
$route = $args[0]; // name of the route.
|
||||||
if (!(strpos(Route::getCurrentRoute()->getName(), $route) === false)) {
|
if (!(strpos(Route::getCurrentRoute()->getName(), $route) === false)) {
|
||||||
return 'active because-route-matches-non-strict';
|
return 'active';
|
||||||
}
|
}
|
||||||
|
|
||||||
return 'not-xxx-at-all';
|
return '';
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -249,10 +249,10 @@ class General extends Twig_Extension
|
|||||||
$activeWhat = isset($context['what']) ? $context['what'] : false;
|
$activeWhat = isset($context['what']) ? $context['what'] : false;
|
||||||
|
|
||||||
if ($what == $activeWhat && !(strpos(Route::getCurrentRoute()->getName(), $route) === false)) {
|
if ($what == $activeWhat && !(strpos(Route::getCurrentRoute()->getName(), $route) === false)) {
|
||||||
return 'active because-route-matches-non-strict-what';
|
return 'active';
|
||||||
}
|
}
|
||||||
|
|
||||||
return 'not-xxx-at-all';
|
return '';
|
||||||
}, ['needs_context' => true]
|
}, ['needs_context' => true]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user