only add DIRECTORY_SEPARATOR if it isn't already present

This commit is contained in:
mohrt
2003-05-08 14:29:44 +00:00
parent a46afb8f82
commit 8d99b837ec

View File

@@ -99,8 +99,11 @@ class Config_File {
$this->_trigger_error_msg("Bad config file path '$config_path'");
return;
}
if(substr($config_path, -1) != DIRECTORY_SEPARATOR) {
$config_path .= DIRECTORY_SEPARATOR;
}
$this->_config_path = $config_path . DIRECTORY_SEPARATOR;
$this->_config_path = $config_path;
}
}