فهرست منبع

Zend_Pdf: added ':' pagesize format support (in addition to '::'). ZF-5156.

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19749 44c647ce-9c0f-0410-b52a-842ac1e357ba
alexander 16 سال پیش
والد
کامیت
c3336ab3fd
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      library/Zend/Pdf/Page.php

+ 2 - 2
library/Zend/Pdf/Page.php

@@ -284,11 +284,11 @@ class Zend_Pdf_Page
                     $param1 = Zend_Pdf_Page::SIZE_LETTER_LANDSCAPE;
                     break;
                 default:
-                    // should be in "x:y" form
+                    // should be in "x:y" or "x:y:" form
             }
 
             $pageDim = explode(':', $param1);
-            if(count($pageDim) == 3) {
+            if(count($pageDim) == 2  ||  count($pageDim) == 3) {
                 $pageWidth  = $pageDim[0];
                 $pageHeight = $pageDim[1];
             } else {