fix directory separator code, use DIRECTORY_SEPARATOR

This commit is contained in:
mohrt
2003-05-08 14:21:13 +00:00
parent afc42e2a3f
commit a46afb8f82

View File

@@ -73,7 +73,6 @@ class Config_File {
/** @access private */ /** @access private */
var $_config_path = ""; var $_config_path = "";
var $_config_data = array(); var $_config_data = array();
var $_separator = "";
/**#@-*/ /**#@-*/
/** /**
@@ -83,11 +82,6 @@ class Config_File {
*/ */
function Config_File($config_path = NULL) function Config_File($config_path = NULL)
{ {
if (substr(PHP_OS, 0, 3) == "WIN" || substr(PHP_OS, 0, 4) == "OS/2")
$this->_separator = "\\";
else
$this->_separator = "/";
if (isset($config_path)) if (isset($config_path))
$this->set_path($config_path); $this->set_path($config_path);
} }
@@ -106,7 +100,7 @@ class Config_File {
return; return;
} }
$this->_config_path = $config_path . $this->_separator; $this->_config_path = $config_path . DIRECTORY_SEPARATOR;
} }
} }