Skip to content

Commit

Permalink
Zend_Pdf: added ':' pagesize format support (in addition to '::'). ZF…
Browse files Browse the repository at this point in the history
…-5156.

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19749 44c647ce-9c0f-0410-b52a-842ac1e357ba
  • Loading branch information
alexander committed Dec 18, 2009
1 parent c32b25b commit c3336ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Zend/Pdf/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,11 @@ public function __construct($param1, $param2 = null, $param3 = null)
$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 {
Expand Down

0 comments on commit c3336ab

Please sign in to comment.