Explorar o código

Zend_Pdf: destinations/actions processing minor fix. Closes [ZF-7479].

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@17423 44c647ce-9c0f-0410-b52a-842ac1e357ba
alexander %!s(int64=16) %!d(string=hai) anos
pai
achega
c32299f60c
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      library/Zend/Pdf/Target.php

+ 1 - 4
library/Zend/Pdf/Target.php

@@ -55,10 +55,7 @@ abstract class Zend_Pdf_Target
             }
             }
         }
         }
 
 
-        if ($resource->getType() == Zend_Pdf_Element::TYPE_DICTIONARY) {
-            // Load destination as appropriate action
-            return Zend_Pdf_Action::load($resource);
-        } else if ($resource->getType() == Zend_Pdf_Element::TYPE_ARRAY  ||
+        if ($resource->getType() == Zend_Pdf_Element::TYPE_ARRAY  ||
                    $resource->getType() == Zend_Pdf_Element::TYPE_NAME   ||
                    $resource->getType() == Zend_Pdf_Element::TYPE_NAME   ||
                    $resource->getType() == Zend_Pdf_Element::TYPE_STRING) {
                    $resource->getType() == Zend_Pdf_Element::TYPE_STRING) {
             // Resource is an array, just treat it as an explicit destination array
             // Resource is an array, just treat it as an explicit destination array