We don't need to call sessionSegment->get() twice

This commit is contained in:
Pierre Rudloff 2017-05-31 00:51:11 +02:00
parent 0a66dce2b8
commit 68525c9dd8

View file

@ -43,7 +43,7 @@ class LocaleManager
$this->sessionSegment = $session->getSegment('Alltube\LocaleManager');
$cookieLocale = $this->sessionSegment->get('locale');
if (isset($cookieLocale)) {
$this->setLocale(new Locale($this->sessionSegment->get('locale')));
$this->setLocale(new Locale($cookieLocale));
}
}