Code Duplication    Length = 11-11 lines in 2 locations

modules_v3/GEDFact_assistant/_MEDIA/media_0_inverselink.php 1 location

@@ 526-536 (lines=11) @@
523
		</tr>
524
		<?php
525
		// Admin Option CHAN log update override =======================
526
		if (Auth::isAdmin()) {
527
			echo '<tr><td class="descriptionbox wrap width25">';
528
			echo I18N::translate('Last change'), '</td><td class="optionbox wrap">';
529
			if ($WT_TREE->getPreference('NO_UPDATE_CHAN')) {
530
				echo '<input type="checkbox" checked name="preserve_last_changed">';
531
			} else {
532
				echo '<input type="checkbox" name="preserve_last_changed">';
533
			}
534
			echo I18N::translate('Keep the existing “last change” information');
535
			echo '</td></tr>';
536
		}
537
		?>
538
	</table>
539
	<input type="hidden" name="more_links" value="No_Values">

addmedia.php 1 location

@@ 686-696 (lines=11) @@
683
		FunctionsEdit::addSimpleTag(($sourceLevel + 1) . ' QUAY ' . $sourceQUAY);
684
	}
685
}
686
if (Auth::isAdmin() && $action === 'update') {
687
	echo '<tr><td class="descriptionbox wrap width25">';
688
	echo I18N::translate('Last change'), '</td><td class="optionbox wrap">';
689
	if ($NO_UPDATE_CHAN) {
690
		echo '<input type="checkbox" checked name="preserve_last_changed">';
691
	} else {
692
		echo '<input type="checkbox" name="preserve_last_changed">';
693
	}
694
	echo I18N::translate('Keep the existing “last change” information'), '<br>';
695
	echo '</td></tr>';
696
}
697
echo '</table>';
698
FunctionsEdit::printAddLayer('SOUR', 1);
699
FunctionsEdit::printAddLayer('NOTE', 1);