ports/graphics/pear-Image_Graph/files/extra-patch-Graph__Layout.php
Martin Wilke b316d4c9ec - Allow to work with php5.3.X
PR:		148009
Submitted by:	olli hauer <ohauer@gmx.de>
2010-07-12 06:39:53 +00:00

12 lines
476 B
PHP

--- ./Graph/Layout.php.orig 2010-06-14 17:05:41.000000000 +0200
+++ ./Graph/Layout.php 2010-06-14 17:06:24.000000000 +0200
@@ -175,7 +175,7 @@
function _push($edge, $size = '100%')
{
$result = array();
- if (ereg("([0-9]*)\%", $size, $result)) {
+ if (preg_match("/([0-9]*)\%/", $size, $result)) {
$this->_alignSize[$edge] = array(
'value' => min(100, max(0, $result[1])),
'unit' => 'percentage'