Commit fa6b04a0 authored by bgm's avatar bgm
Browse files

suffix filenames with the date, so that we do not need git to view changes.

parent beab4121
......@@ -118,9 +118,12 @@ function msgtplhelper_civicrm_post($op, $objectName, $objectId, &$objectRef) {
if (!is_dir($destination_directory)) {
CRM_Utils_File::createDir($destination_directory);
}
// We suffix the date, so that we can diff without git
$date = date('Ymd-Hi');
foreach (array('title', 'subject', 'text', 'html') as $part) {
$filename = $destination_directory . '/' . $basename . '-' . $part . '.txt';
$filename = $destination_directory . '/' . $basename . '-' . $part . '-' . $date . '.txt';
$fp = fopen($filename, 'w');
if (! $fp) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment