Code Duplication    Length = 2-2 lines in 2 locations

other/upgrade.php 2 locations

@@ 1435-1436 (lines=2) @@
1432
	copy($boarddir . '/Settings.php', $boarddir . '/Settings_bak.php');
1433
1434
	// Fix some old paths.
1435
	if (substr($boarddir, 0, 1) == '.')
1436
		$changes['boarddir'] = '\'' . fixRelativePath($boarddir) . '\'';
1437
1438
	if (substr($sourcedir, 0, 1) == '.')
1439
		$changes['sourcedir'] = '\'' . fixRelativePath($sourcedir) . '\'';
@@ 1438-1439 (lines=2) @@
1435
	if (substr($boarddir, 0, 1) == '.')
1436
		$changes['boarddir'] = '\'' . fixRelativePath($boarddir) . '\'';
1437
1438
	if (substr($sourcedir, 0, 1) == '.')
1439
		$changes['sourcedir'] = '\'' . fixRelativePath($sourcedir) . '\'';
1440
1441
	if (empty($cachedir) || substr($cachedir, 0, 1) == '.')
1442
		$changes['cachedir'] = '\'' . fixRelativePath($boarddir) . '/cache\'';