We don't need to call sessionSegment->get() twice
This commit is contained in:
parent
0a66dce2b8
commit
68525c9dd8
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ class LocaleManager
|
||||||
$this->sessionSegment = $session->getSegment('Alltube\LocaleManager');
|
$this->sessionSegment = $session->getSegment('Alltube\LocaleManager');
|
||||||
$cookieLocale = $this->sessionSegment->get('locale');
|
$cookieLocale = $this->sessionSegment->get('locale');
|
||||||
if (isset($cookieLocale)) {
|
if (isset($cookieLocale)) {
|
||||||
$this->setLocale(new Locale($this->sessionSegment->get('locale')));
|
$this->setLocale(new Locale($cookieLocale));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue