8000 merged branch vlechemin/ticket_3472 (PR #3473) · jeremymarc/symfony@e8c0e07 · GitHub
[go: up one dir, main page]

Skip to content

Commit e8c0e07

Browse files
committed
merged branch vlechemin/ticket_3472 (PR symfony#3473)
Commits ------- ab47a88 [FrameworkBundle][Translator] Fix test for request being available in order to get the locale. Discussion ---------- [FrameworkBundle][Translator] Fix test for request being available. Bug fix: yes Feature addition: no Backwards compatibility break: no Symfony2 tests pass: yes Fixes the following tickets: symfony#3472 Todo: -
2 parents d0e1547 + ab47a88 commit e8c0e07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function __construct(ContainerInterface $container, MessageSelector $sele
6565
*/
6666
public function getLocale()
6767
{
68-
if (null === $this->locale && $this->container->has('request')) {
68+
if (null === $this->locale && $this->container->isScopeActive('request')) {
6969
$this->locale = $this->container->get('request')->getLocale();
7070
}
7171

0 commit comments

Comments
 (0)
0