Code Duplication    Length = 7-7 lines in 2 locations

setup/inc/hook_config_validate.inc.php 2 locations

@@ 72-78 (lines=7) @@
69
	}
70
}
71
72
function temp_dir($settings)
73
{
74
	if (!setup_detection::check_dir($settings['temp_dir'],$error_msg))
75
	{
76
		$GLOBALS['config_error'] = lang("Your temporary directory '%1' %2",$settings['temp_dir'],$error_msg);
77
	}
78
}
79
80
function files_dir($settings)
81
{
@@ 80-86 (lines=7) @@
77
	}
78
}
79
80
function files_dir($settings)
81
{
82
	if (!setup_detection::check_dir($settings['files_dir'],$error_msg,true))
83
	{
84
		$GLOBALS['config_error'] = lang("Your files directory '%1' %2",$settings['files_dir'],$error_msg);
85
	}
86
}
87
88
function backup_dir(&$settings)
89
{