From f9329aac00345e8d63a8702c280ef3d162d40af6 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 28 Jun 2015 13:09:20 +0200 Subject: [PATCH] Removed unnecessary html tags. [skip ci] --- app/Support/Twig/General.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Support/Twig/General.php b/app/Support/Twig/General.php index 4f79622995..2739beb111 100644 --- a/app/Support/Twig/General.php +++ b/app/Support/Twig/General.php @@ -204,10 +204,10 @@ class General extends Twig_Extension $route = $args[0]; // name of the 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(); $route = $args[0]; // name of the route. 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; 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] ); }