mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
More 5.3 compatibility.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8766 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
c73ecdd9d7
commit
d006f319cf
1 changed files with 2 additions and 2 deletions
|
@ -137,7 +137,7 @@ class diff_renderer
|
||||||
{
|
{
|
||||||
// Create a new block with as many lines as we need for the trailing context.
|
// Create a new block with as many lines as we need for the trailing context.
|
||||||
$context = array_slice($edit->orig, 0, $ntrail);
|
$context = array_slice($edit->orig, 0, $ntrail);
|
||||||
$block[] = &new diff_op_copy($context);
|
$block[] = new diff_op_copy($context);
|
||||||
}
|
}
|
||||||
|
|
||||||
$output .= $this->_block($x0, $ntrail + $xi - $x0, $y0, $ntrail + $yi - $y0, $block);
|
$output .= $this->_block($x0, $ntrail + $xi - $x0, $y0, $ntrail + $yi - $y0, $block);
|
||||||
|
@ -160,7 +160,7 @@ class diff_renderer
|
||||||
|
|
||||||
if ($context)
|
if ($context)
|
||||||
{
|
{
|
||||||
$block[] = &new diff_op_copy($context);
|
$block[] = new diff_op_copy($context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$block[] = $edit;
|
$block[] = $edit;
|
||||||
|
|
Loading…
Add table
Reference in a new issue