/**
* Constructor.
*/
- function Text_Diff_Renderer($params = array())
+ function __construct( $params = array() )
{
foreach ($params as $param => $value) {
$v = '_' . $param;
}
}
+ /**
+ * PHP4 constructor.
+ */
+ public function Text_Diff_Renderer( $params = array() ) {
+ self::__construct( $params );
+ }
+
/**
* Get any renderer parameters.
*
/* Create a new block with as many lines as we need
* for the trailing context. */
$context = array_slice($edit->orig, 0, $ntrail);
- $block[] = &new Text_Diff_Op_copy($context);
+ $block[] = new Text_Diff_Op_copy($context);
}
/* @todo */
$output .= $this->_block($x0, $ntrail + $xi - $x0,
$y0 = $yi - count($context);
$block = array();
if ($context) {
- $block[] = &new Text_Diff_Op_copy($context);
+ $block[] = new Text_Diff_Op_copy($context);
}
}
$block[] = $edit;