Skip to content

Commit

Permalink
Fixed url2 error
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Aug 24, 2016
1 parent d55cdd7 commit 1b19d09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ public function boot()
});

Form::macro('nav_link', function($url, $text) {
$class = ( Request::is($url) || Request::is($url.'/*') || Request::is($url2.'/*') ) ? ' class="active"' : '';
//$class = ( Request::is($url) || Request::is($url.'/*') || Request::is($url2.'/*') ) ? ' class="active"' : '';
$class = ( Request::is($url) || Request::is($url.'/*') ) ? ' class="active"' : '';
$title = trans("texts.$text") . Utils::getProLabel($text);

return '<li'.$class.'><a href="'.URL::to($url).'">'.$title.'</a></li>';
Expand Down

0 comments on commit 1b19d09

Please sign in to comment.