소스 검색

[HttpFoundation] removed optimization for setLocale() as it breaks when locale is not the default and the user wants to switch back to the default locale

Fabien Potencier 14 년 전
부모
커밋
a45baed812
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 4
      src/Symfony/Component/HttpFoundation/Session.php

+ 0 - 4
src/Symfony/Component/HttpFoundation/Session.php

@@ -185,10 +185,6 @@ class Session implements \Serializable
      */
     public function setLocale($locale)
     {
-        if ($locale === $this->getDefaultLocale()) {
-            return;
-        }
-
         if (false === $this->started) {
             $this->start();
         }