Code Duplication    Length = 2-2 lines in 2 locations

Sources/Post.php 1 location

@@ 882-883 (lines=2) @@
879
			$form_subject = $first_subject;
880
881
			// Add 'Re: ' to the front of the subject.
882
			if (trim($context['response_prefix']) != '' && $form_subject != '' && $smcFunc['strpos']($form_subject, trim($context['response_prefix'])) !== 0)
883
				$form_subject = $context['response_prefix'] . $form_subject;
884
885
			// Censor the subject.
886
			censorText($form_subject);

Sources/PersonalMessage.php 1 location

@@ 1832-1833 (lines=2) @@
1829
			cache_put_data('response_prefix', $context['response_prefix'], 600);
1830
		}
1831
		$form_subject = $row_quoted['subject'];
1832
		if ($context['reply'] && trim($context['response_prefix']) != '' && $smcFunc['strpos']($form_subject, trim($context['response_prefix'])) !== 0)
1833
			$form_subject = $context['response_prefix'] . $form_subject;
1834
1835
		if (isset($_REQUEST['quote']))
1836
		{