Przeglądaj źródła

[GENERIC] Zend_View_Helper_Translate:

- erased duplicate code

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@18497 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas 16 lat temu
rodzic
commit
b607cf1f79
1 zmienionych plików z 0 dodań i 10 usunięć
  1. 0 10
      library/Zend/View/Helper/Translate.php

+ 0 - 10
library/Zend/View/Helper/Translate.php

@@ -129,20 +129,10 @@ class Zend_View_Helper_Translate extends Zend_View_Helper_Abstract
     /**
      * Retrieve translation object
      *
-     * If none is currently registered, attempts to pull it from the registry
-     * using the key 'Zend_Translate'.
-     *
      * @return Zend_Translate_Adapter|null
      */
     public function getTranslator()
     {
-        if ($this->_translator === null) {
-            require_once 'Zend/Registry.php';
-            if (Zend_Registry::isRegistered('Zend_Translate') === true) {
-                $this->setTranslator(Zend_Registry::get('Zend_Translate'));
-            }
-        }
-
         return $this->_translator;
     }