Procházet zdrojové kódy

[ZF-9231] Zend_File:

- fixed exception

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@21201 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas před 16 roky
rodič
revize
34a25f9b5a
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      library/Zend/File/Transfer.php

+ 2 - 2
library/Zend/File/Transfer.php

@@ -74,9 +74,9 @@ class Zend_File_Transfer
 
 
         $direction = (integer) $direction;
         $direction = (integer) $direction;
         $this->_adapter[$direction] = new $adapter($options);
         $this->_adapter[$direction] = new $adapter($options);
-        if (!$this->_adapter[$direction] instanceof Zend_File_Transfer_Adapter) {
+        if (!$this->_adapter[$direction] instanceof Zend_File_Transfer_Adapter_Abstract) {
             require_once 'Zend/File/Transfer/Exception.php';
             require_once 'Zend/File/Transfer/Exception.php';
-            throw new Zend_File_Transfer_Exception("Adapter " . $adapter . " does not extend Zend_File_Transfer_Adapter");
+            throw new Zend_File_Transfer_Exception("Adapter " . $adapter . " does not extend Zend_File_Transfer_Adapter_Abstract");
         }
         }
 
 
         return $this;
         return $this;