@@ 95-97 (lines=3) @@ | ||
92 | if ($serviceManager->get('router')->match($serviceManager->get('request')) && |
|
93 | strpos($serviceManager->get('router')->match($serviceManager->get('request'))->getMatchedRouteName(), 'admin') !==false |
|
94 | ) { |
|
95 | if ($e->getRequest()->getCookie() && |
|
96 | $e->getRequest()->getCookie()->offsetExists('pg_locale_back') |
|
97 | ) { |
|
98 | $locale = $e->getRequest()->getCookie()->offsetGet('pg_locale_back'); |
|
99 | } |
|
100 | } else { |
|
@@ 100-104 (lines=5) @@ | ||
97 | ) { |
|
98 | $locale = $e->getRequest()->getCookie()->offsetGet('pg_locale_back'); |
|
99 | } |
|
100 | } else { |
|
101 | if ($e->getRequest()->getCookie() && |
|
102 | $e->getRequest()->getCookie()->offsetExists('pg_locale_frontend') |
|
103 | ) { |
|
104 | $locale = $e->getRequest()->getCookie()->offsetGet('pg_locale_frontend'); |
|
105 | } |
|
106 | } |
|
107 | } |