| @@ 1267-1270 (lines=4) @@ | ||
| 1264 | $gedcom = trim($gedcom); |
|
| 1265 | ||
| 1266 | // Update the CHAN record |
|
| 1267 | if ($update_chan) { |
|
| 1268 | $gedcom = preg_replace('/\n1 CHAN(\n[2-9].*)*/', '', $gedcom); |
|
| 1269 | $gedcom .= "\n1 CHAN\n2 DATE " . date('d M Y') . "\n3 TIME " . date('H:i:s') . "\n2 _WT_USER " . Auth::user()->getUserName(); |
|
| 1270 | } |
|
| 1271 | ||
| 1272 | // Create a pending change |
|
| 1273 | Database::prepare( |
|
| @@ 732-734 (lines=3) @@ | ||
| 729 | } |
|
| 730 | ||
| 731 | // Create a change record, if not already present |
|
| 732 | if (!preg_match('/\n1 CHAN/', $gedcom)) { |
|
| 733 | $gedcom .= "\n1 CHAN\n2 DATE " . date('d M Y') . "\n3 TIME " . date('H:i:s') . "\n2 _WT_USER " . Auth::user()->getUserName(); |
|
| 734 | } |
|
| 735 | ||
| 736 | // Create a pending change |
|
| 737 | Database::prepare( |
|