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