Use a proper constant for diff marker

This commit is contained in:
nathangray 2019-02-27 09:04:17 -07:00
parent 39e7820520
commit 73600bb541

View File

@ -191,6 +191,12 @@ abstract class Tracking
*/ */
const ONE2N_SEPERATOR = '~|~'; const ONE2N_SEPERATOR = '~|~';
/**
* Marker for change stored as unified diff, not old/new value
* Diff is in the new value, marker in old value
*/
const DIFF_MARKER = '***diff***';
/** /**
* Config name for custom notification message * Config name for custom notification message
*/ */
@ -463,7 +469,7 @@ abstract class Tracking
$status, $status,
$data[$this->id_field], $data[$this->id_field],
$renderer->render($diff), $renderer->render($diff),
'***diff***' self::DIFF_MARKER
); );
} }
else else