Separator setting fix.

This commit is contained in:
andrei
2002-04-03 14:45:03 +00:00
parent 94f29eeb7e
commit e1f8273788
2 changed files with 2 additions and 2 deletions

View File

@@ -74,7 +74,7 @@ class Config_File {
*/ */
function Config_File($config_path = NULL) function Config_File($config_path = NULL)
{ {
if (substr(PHP_OS, 1, 3) == "WIN" || substr(PHP_OS, 1, 4) == "OS/2") if (substr(PHP_OS, 0, 3) == "WIN" || substr(PHP_OS, 0, 4) == "OS/2")
$this->_separator = "\\"; $this->_separator = "\\";
else else
$this->_separator = "/"; $this->_separator = "/";

View File

@@ -74,7 +74,7 @@ class Config_File {
*/ */
function Config_File($config_path = NULL) function Config_File($config_path = NULL)
{ {
if (substr(PHP_OS, 1, 3) == "WIN" || substr(PHP_OS, 1, 4) == "OS/2") if (substr(PHP_OS, 0, 3) == "WIN" || substr(PHP_OS, 0, 4) == "OS/2")
$this->_separator = "\\"; $this->_separator = "\\";
else else
$this->_separator = "/"; $this->_separator = "/";