From e1f82737881366e360bb5a3d9c8f2da3b82962dd Mon Sep 17 00:00:00 2001 From: andrei Date: Wed, 3 Apr 2002 14:45:03 +0000 Subject: [PATCH] Separator setting fix. --- Config_File.class.php | 2 +- libs/Config_File.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Config_File.class.php b/Config_File.class.php index 91caaf92..b60c1d62 100644 --- a/Config_File.class.php +++ b/Config_File.class.php @@ -74,7 +74,7 @@ class Config_File { */ 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 = "\\"; else $this->_separator = "/"; diff --git a/libs/Config_File.class.php b/libs/Config_File.class.php index 91caaf92..b60c1d62 100644 --- a/libs/Config_File.class.php +++ b/libs/Config_File.class.php @@ -74,7 +74,7 @@ class Config_File { */ 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 = "\\"; else $this->_separator = "/";