Преглед изворни кода

[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();
         }