Code Duplication    Length = 7-7 lines in 2 locations

Sources/Load.php 1 location

@@ 1556-1562 (lines=7) @@
1553
				$value = $value ? $txt['yes'] : $txt['no'];
1554
1555
			// Enclosing the user input within some other text?
1556
			if (!empty($custom['enclose']))
1557
				$value = strtr($custom['enclose'], array(
1558
					'{SCRIPTURL}' => $scripturl,
1559
					'{IMAGES_URL}' => $settings['images_url'],
1560
					'{DEFAULT_IMAGES_URL}' => $settings['default_images_url'],
1561
					'{INPUT}' => $value,
1562
				));
1563
1564
			$memberContext[$user]['custom_fields'][] = array(
1565
				'title' => !empty($custom['title']) ? $custom['title'] : $custom['col_name'],

Sources/Profile.php 1 location

@@ 963-969 (lines=7) @@
960
			$output_html = strtr($output_html, array("\n" => '<br>'));
961
962
		// Enclosing the user input within some other text?
963
		if (!empty($row['enclose']) && !empty($output_html))
964
			$output_html = strtr($row['enclose'], array(
965
				'{SCRIPTURL}' => $scripturl,
966
				'{IMAGES_URL}' => $settings['images_url'],
967
				'{DEFAULT_IMAGES_URL}' => $settings['default_images_url'],
968
				'{INPUT}' => un_htmlspecialchars($output_html),
969
			));
970
971
		$context['custom_fields'][] = array(
972
			'name' => $row['field_name'],