Make sure locale is always set, even on first request
This commit is contained in:
parent
05959b17f0
commit
f184bda59b
3 changed files with 4 additions and 4 deletions
|
@ -81,7 +81,7 @@ class ViewFactory
|
|||
$view->registerPlugin('block', 't', [$localeManager, 'smartyTranslate']);
|
||||
|
||||
$view->offsetSet('canonical', self::getCanonicalUrl($request));
|
||||
$view->offsetSet('locale', $container->get('locale')->getLocale());
|
||||
$view->offsetSet('locale', $container->get('locale'));
|
||||
$view->offsetSet('config', $container->get('config'));
|
||||
$view->offsetSet('domain', $uri->withBasePath('')->getBaseUrl());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue