Code Duplication    Length = 3-3 lines in 2 locations

Themes/default/Display.template.php 1 location

@@ 913-915 (lines=3) @@
910
			echo '
911
											<li><a href="', $scripturl, '?action=removetopic2;topic=', $context['current_topic'], '.', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '" data-confirm="', $txt['are_sure_remove_topic'], '" class="you_sure"><span class="generic_icons remove_button"></span>', $txt['remove_topic'], '</a></li>';
912
913
		elseif ($message['can_remove'] && ($context['topic_first_message'] != $message['id']))
914
			echo '
915
											<li><a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '" data-confirm="', $txt['remove_message_question'], '" class="you_sure"><span class="generic_icons remove_button"></span>', $txt['remove'], '</a></li>';
916
917
		// What about splitting it off the rest of the topic?
918
		if ($context['can_split'] && !empty($context['real_num_replies']))

Themes/default/Profile.template.php 1 location

@@ 542-544 (lines=3) @@
539
					<li><a href="', $scripturl . '?action=post;topic=', $post['topic'], '.', $post['start'], ';quote=', $post['id'], '"><span class="generic_icons quote"></span>', $txt['quote_action'], '</a></li>';
540
541
			// How about... even... remove it entirely?!
542
			if ($post['can_delete'])
543
				echo '
544
					<li><a href="', $scripturl, '?action=deletemsg;msg=', $post['id'], ';topic=', $post['topic'], ';profile;u=', $context['member']['id'], ';start=', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '" data-confirm="', $txt['remove_message'], '" class="you_sure"><span class="generic_icons remove_button"></span>', $txt['remove'], '</a></li>';
545
546
			if ($post['can_reply'] || $post['can_quote'] || $post['can_delete'])
547
				echo '