2
0
Просмотр исходного кода

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 16 лет назад
Родитель
Сommit
c32299f60c
1 измененных файлов с 1 добавлено и 4 удалено
  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_STRING) {
             // Resource is an array, just treat it as an explicit destination array