mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 22:54:25 +01:00
Fixed url2 error
This commit is contained in:
parent
d55cdd7619
commit
1b19d09f79
@ -33,7 +33,8 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
});
|
});
|
||||||
|
|
||||||
Form::macro('nav_link', function($url, $text) {
|
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);
|
$title = trans("texts.$text") . Utils::getProLabel($text);
|
||||||
|
|
||||||
return '<li'.$class.'><a href="'.URL::to($url).'">'.$title.'</a></li>';
|
return '<li'.$class.'><a href="'.URL::to($url).'">'.$title.'</a></li>';
|
||||||
|
Loading…
Reference in New Issue
Block a user