Code Duplication    Length = 2-2 lines in 2 locations

other/upgrade.php 2 locations

@@ 1043-1044 (lines=2) @@
1040
		echo ' * Updating Settings.php...';
1041
1042
	// Fix some old paths.
1043
	if (substr($boarddir, 0, 1) == '.')
1044
		$changes['boarddir'] = '\'' . fixRelativePath($boarddir) . '\'';
1045
1046
	if (substr($sourcedir, 0, 1) == '.')
1047
		$changes['sourcedir'] = '\'' . fixRelativePath($sourcedir) . '\'';
@@ 1046-1047 (lines=2) @@
1043
	if (substr($boarddir, 0, 1) == '.')
1044
		$changes['boarddir'] = '\'' . fixRelativePath($boarddir) . '\'';
1045
1046
	if (substr($sourcedir, 0, 1) == '.')
1047
		$changes['sourcedir'] = '\'' . fixRelativePath($sourcedir) . '\'';
1048
1049
	if (empty($cachedir) || substr($cachedir, 0, 1) == '.')
1050
		$changes['cachedir'] = '\'' . fixRelativePath($boarddir) . '/cache\'';