Sfoglia il codice sorgente

[ZF-10005] Zend_Locale:

- added fallback for iis

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@22528 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas 15 anni fa
parent
commit
c5463bdfef
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      library/Zend/Locale.php

+ 4 - 0
library/Zend/Locale.php

@@ -426,6 +426,10 @@ class Zend_Locale
         }
 
         $httplanguages = getenv('HTTP_ACCEPT_LANGUAGE');
+        if (empty($httplanguages)) {
+            $httplanguages = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
+        }
+
         $languages     = array();
         if (empty($httplanguages) === true) {
             return $languages;