Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Mar 7, 2020
1 parent a8625f4 commit 656326e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Config/language.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
| It can be 'session' (default) or 'referer'
|
*/
'strategy' => 'session',
'back' => 'session',

/*
|--------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/Controllers/Language.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function back($locale, Request $request)
{
$this->setLocale($locale, $request);

$url = config('language.strategy') === 'referer'
$url = config('language.back', 'session') === 'referer'
? $this->getUrlFromReferer($request)
: $this->getUrlFromSession($request);

Expand Down

0 comments on commit 656326e

Please sign in to comment.