small fix to last admin.php change for DIFF display
git-svn-id: svn://192.168.202.10@3013 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
+15
-1
@@ -40411,7 +40411,6 @@ if ($ADD==730000000000000)
|
||||
// include the Diff class
|
||||
require_once './class.Diff.php';
|
||||
|
||||
|
||||
// output the result of comparing two files as HTML
|
||||
if ( ($log_description == 'ADMIN MODIFY LEAD') and (strlen($log_notes) > 50) )
|
||||
{
|
||||
@@ -40431,6 +40430,21 @@ if ($ADD==730000000000000)
|
||||
echo Diff::toTable(Diff::compare($rowx[9], $new_sql));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( ($log_description == 'ADMIN MODIFY LEAD') and (strlen($log_notes) > 50) )
|
||||
{
|
||||
// include the Diff class
|
||||
require_once './class.Diff.php';
|
||||
|
||||
$log_notes_ARY = explode("---ORIG---NEW---",$log_notes);
|
||||
$log_notes_ARY[0] = preg_replace('/\',/i', '\' ,',$log_notes_ARY[0]);
|
||||
$log_notes_ARY[0] = preg_replace('/\|/', "\n",$log_notes_ARY[0]);
|
||||
$log_notes_ARY[1] = preg_replace('/\',/i', '\' ,',$log_notes_ARY[1]);
|
||||
$log_notes_ARY[1] = preg_replace('/\|/', "\n",$log_notes_ARY[1]);
|
||||
echo Diff::toTable(Diff::compare($log_notes_ARY[0], $log_notes_ARY[1]));
|
||||
}
|
||||
}
|
||||
|
||||
echo "</TD>";
|
||||
echo "</TR>\n";
|
||||
|
||||
Reference in New Issue
Block a user