Code Duplication    Length = 3-3 lines in 2 locations

Themes/default/Profile.template.php 1 location

@@ 510-512 (lines=3) @@
507
						<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>';
508
509
			// How about... even... remove it entirely?!
510
			if ($post['can_delete'])
511
				echo '
512
						<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>';
513
514
			if ($post['can_reply'] || $post['can_quote'] || $post['can_delete'])
515
				echo '

Themes/default/Display.template.php 1 location

@@ 873-875 (lines=3) @@
870
		if ($context['can_delete'] && ($context['topic_first_message'] == $message['id']))
871
			echo '
872
											<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>';
873
		elseif ($message['can_remove'] && ($context['topic_first_message'] != $message['id']))
874
			echo '
875
											<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>';
876
877
		// What about splitting it off the rest of the topic?
878
		if ($context['can_split'] && !empty($context['real_num_replies']))