From 656326e3237b4937f5139fd9669892297ac1df23 Mon Sep 17 00:00:00 2001 From: denisdulici Date: Sun, 8 Mar 2020 02:19:59 +0300 Subject: [PATCH] formatting --- src/Config/language.php | 2 +- src/Controllers/Language.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Config/language.php b/src/Config/language.php index 5ebd9fc..92e5098 100644 --- a/src/Config/language.php +++ b/src/Config/language.php @@ -42,7 +42,7 @@ | It can be 'session' (default) or 'referer' | */ - 'strategy' => 'session', + 'back' => 'session', /* |-------------------------------------------------------------------------- diff --git a/src/Controllers/Language.php b/src/Controllers/Language.php index b8a96d5..e5591fd 100644 --- a/src/Controllers/Language.php +++ b/src/Controllers/Language.php @@ -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);