Code Duplication    Length = 5-5 lines in 2 locations

other/install.php 2 locations

@@ 785-789 (lines=5) @@
782
		}
783
784
		// God I hope it saved!
785
		if (!updateSettingsFile($vars) && substr(__FILE__, 1, 2) == ':\\')
786
		{
787
			$incontext['error'] = $txt['error_windows_chmod'];
788
			return false;
789
		}
790
791
		// Make sure it works.
792
		require(dirname(__FILE__) . '/Settings.php');
@@ 947-951 (lines=5) @@
944
		);
945
946
		// Must save!
947
		if (!updateSettingsFile($vars) && substr(__FILE__, 1, 2) == ':\\')
948
		{
949
			$incontext['error'] = $txt['error_windows_chmod'];
950
			return false;
951
		}
952
953
		// Make sure it works.
954
		require(dirname(__FILE__) . '/Settings.php');