浏览代码

[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)
     public function setLocale($locale)
     {
     {
-        if ($locale === $this->getDefaultLocale()) {
-            return;
-        }
-
         if (false === $this->started) {
         if (false === $this->started) {
             $this->start();
             $this->start();
         }
         }