Code Duplication    Length = 11-11 lines in 2 locations

Themes/default/Profile.template.php 2 locations

@@ 1527-1537 (lines=11) @@
1524
				<div>', $context['profile_posthtml'], '</div>';
1525
1526
	// Only show the password box if it's actually needed.
1527
	if ($context['require_password'])
1528
		echo '
1529
				<dl>
1530
					<dt>
1531
						<strong', isset($context['modify_error']['bad_password']) || isset($context['modify_error']['no_password']) ? ' class="error"' : '', '><label for="oldpasswrd">', $txt['current_password'], ': </label></strong><br>
1532
						<span class="smalltext">', $txt['required_security_reasons'], '</span>
1533
					</dt>
1534
					<dd>
1535
						<input type="password" name="oldpasswrd" id="oldpasswrd" size="20" style="margin-right: 4ex;" class="input_password">
1536
					</dd>
1537
				</dl>';
1538
1539
	// The button shouldn't say "Change profile" unless we're changing the profile...
1540
	if (!empty($context['submit_button_text']))
@@ 2597-2607 (lines=11) @@
2594
					<hr>';
2595
2596
	// Only show the password box if it's actually needed.
2597
	if ($context['require_password'])
2598
		echo '
2599
					<dl>
2600
						<dt>
2601
							<strong', isset($context['modify_error']['bad_password']) || isset($context['modify_error']['no_password']) ? ' class="error"' : '', '>', $txt['current_password'], ': </strong><br>
2602
							<span class="smalltext">', $txt['required_security_reasons'], '</span>
2603
						</dt>
2604
						<dd>
2605
							<input type="password" name="oldpasswrd" size="20" style="margin-right: 4ex;" class="input_password">
2606
						</dd>
2607
					</dl>';
2608
2609
	echo '
2610
					<div class="righttext">';