Skip to content

Commit

Permalink
rename config key
Browse files Browse the repository at this point in the history
  • Loading branch information
pxpm committed Jan 17, 2024
1 parent c8a4769 commit 677b1e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/language-switcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
// when true, if the page where the picker is displayed use the `backpack route prefix` in the route,
// we will also add the route prefix on the language-switcher route.
// eg: https://domain.com/admin/set-locale/{locale} instead of https://domain.com/set-locale/{locale}
'use_backpack_route_prefix_on_admin_routes' => false,
'use_backpack_route_prefix' => false,
];
2 changes: 1 addition & 1 deletion resources/views/language-switcher.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</a>
<ul class="dropdown-menu dropdown-menu-right dropdown-menu-end" style="right: 0">
@php
$useAdminPrefix = config('backpack.language-switcher.use_backpack_route_prefix_on_admin_routes');
$useAdminPrefix = config('backpack.language-switcher.use_backpack_route_prefix');
@endphp
@foreach(config('backpack.crud.locales', []) as $locale => $name)
<li>
Expand Down

0 comments on commit 677b1e0

Please sign in to comment.