| @@ 759-761 (lines=3) @@ | ||
| 756 | } |
|
| 757 | ||
| 758 | // Create a change record, if not already present |
|
| 759 | if (!preg_match('/\n1 CHAN/', $gedcom)) { |
|
| 760 | $gedcom .= "\n1 CHAN\n2 DATE " . date('d M Y') . "\n3 TIME " . date('H:i:s') . "\n2 _WT_USER " . Auth::user()->getUserName(); |
|
| 761 | } |
|
| 762 | ||
| 763 | // Create a pending change |
|
| 764 | Database::prepare( |
|
| @@ 1268-1271 (lines=4) @@ | ||
| 1265 | $gedcom = trim($gedcom); |
|
| 1266 | ||
| 1267 | // Update the CHAN record |
|
| 1268 | if ($update_chan) { |
|
| 1269 | $gedcom = preg_replace('/\n1 CHAN(\n[2-9].*)*/', '', $gedcom); |
|
| 1270 | $gedcom .= "\n1 CHAN\n2 DATE " . date('d M Y') . "\n3 TIME " . date('H:i:s') . "\n2 _WT_USER " . Auth::user()->getUserName(); |
|
| 1271 | } |
|
| 1272 | ||
| 1273 | // Create a pending change |
|
| 1274 | Database::prepare( |
|