diff --git a/application/layouts/scripts/external-logout.phtml b/application/layouts/scripts/external-logout.phtml index 607ad4be5..19c35e4e2 100644 --- a/application/layouts/scripts/external-logout.phtml +++ b/application/layouts/scripts/external-logout.phtml @@ -1,8 +1,13 @@ language; +/** @var GettextTranslator $translator */ +$translator = StaticTranslator::$instance; + +$lang = (new Locale())->parseLocale($translator->getLocale())->language; $showFullscreen = $this->layout()->showFullscreen; $innerLayoutScript = $this->layout()->innerLayout . '.phtml'; diff --git a/application/layouts/scripts/layout.phtml b/application/layouts/scripts/layout.phtml index 1d22c9798..1800f2c15 100644 --- a/application/layouts/scripts/layout.phtml +++ b/application/layouts/scripts/layout.phtml @@ -1,6 +1,8 @@ parseLocale($translator->getLocale())->language; $timezone = date_default_timezone_get(); -$lang = Translator::splitLocaleCode()->language; $isIframe = $this->layout()->isIframe; $showFullscreen = $this->layout()->showFullscreen; $iframeClass = $isIframe ? ' iframe' : '';