These are the first commits that make FF require php 7.

This commit is contained in:
James Cole
2016-02-05 08:03:26 +01:00
parent baecc256f6
commit 554640c345
10 changed files with 20 additions and 20 deletions

View File

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