Skip to content

Commit

Permalink
Accept input currentLanguageID on change the language.
Browse files Browse the repository at this point in the history
  • Loading branch information
ve3 committed Mar 24, 2021
1 parent 9ae3f9d commit c7ee251
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Controllers/LanguagesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ public function updateAction(): string

if ($Config->get('languageMethod', 'language', 'url') === 'cookie') {
// if config is using cookie to set, detect language.
// get current language ID before change.
$languageCookieName = 'rundizbones_language' . $Config->get('suffix', 'cookie');
$cookieExpires = 90;// unit in days.
setcookie($languageCookieName, $languageID, (time() + (60*60*24*$cookieExpires)), '/');
Expand Down

0 comments on commit c7ee251

Please sign in to comment.