Code Duplication    Length = 5-7 lines in 2 locations

Sources/Profile-Actions.php 1 location

@@ 235-241 (lines=7) @@
232
		if (empty($_POST['warn_sub']) || empty($_POST['warn_body']))
233
			$issueErrors[] = 'warning_notify_blank';
234
235
		if (!empty($_POST['warn_body']))
236
		{
237
			require_once($sourcedir . '/Subs-Post.php');
238
239
			preparsecode($warning_body);
240
			$warning_body = parse_bbc($warning_body, true);
241
		}
242
243
		// Try to remember some bits.
244
		$context['warning_data'] = array(

Sources/Xml.php 1 location

@@ 295-299 (lines=5) @@
292
			$warning_body = str_replace($find, $replace, $warning_body);
293
		}
294
295
		if (!empty($_POST['body']))
296
		{
297
			preparsecode($warning_body);
298
			$warning_body = parse_bbc($warning_body, true);
299
		}
300
		$context['preview_message'] = $warning_body;
301
	}
302
	else