Code Duplication    Length = 11-11 lines in 2 locations

addmedia.php 1 location

@@ 697-707 (lines=11) @@
694
		FunctionsEdit::addSimpleTag(($sourceLevel + 1) . ' QUAY ' . $sourceQUAY);
695
	}
696
}
697
if (Auth::isAdmin() && $action === 'update') {
698
	echo '<tr><td class="descriptionbox wrap width25">';
699
	echo GedcomTag::getLabel('CHAN'), '</td><td class="optionbox wrap">';
700
	if ($NO_UPDATE_CHAN) {
701
		echo '<input type="checkbox" checked name="preserve_last_changed">';
702
	} else {
703
		echo '<input type="checkbox" name="preserve_last_changed">';
704
	}
705
	echo I18N::translate('Keep the existing “last change” information'), '<br>';
706
	echo '</td></tr>';
707
}
708
echo '</table>';
709
FunctionsEdit::printAddLayer('SOUR', 1);
710
FunctionsEdit::printAddLayer('NOTE', 1);

modules_v3/GEDFact_assistant/_MEDIA/media_0_inverselink.php 1 location

@@ 537-547 (lines=11) @@
534
		</tr>
535
		<?php
536
		// Admin Option CHAN log update override =======================
537
		if (Auth::isAdmin()) {
538
			echo '<tr><td class="descriptionbox wrap width25">';
539
			echo GedcomTag::getLabel('CHAN'), '</td><td class="optionbox wrap">';
540
			if ($WT_TREE->getPreference('NO_UPDATE_CHAN')) {
541
				echo '<input type="checkbox" checked name="preserve_last_changed">';
542
			} else {
543
				echo '<input type="checkbox" name="preserve_last_changed">';
544
			}
545
			echo I18N::translate('Keep the existing “last change” information');
546
			echo '</td></tr>';
547
		}
548
		?>
549
	</table>
550
	<input type="hidden" name="more_links" value="No_Values">