cvs: smarty /libs Config_File.class.php

From: Date: Thu, 08 May 2003 14:21:13 +0000
Subject: cvs: smarty /libs Config_File.class.php
Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-595@lists.php.net to get a copy of this message
mohrt Thu May 8 10:21:13 2003 EDT Modified files: /smarty/libs Config_File.class.php Log: fix directory separator code, use DIRECTORY_SEPARATOR Index: smarty/libs/Config_File.class.php diff -u smarty/libs/Config_File.class.php:1.46 smarty/libs/Config_File.class.php:1.47 --- smarty/libs/Config_File.class.php:1.46 Sun Apr 20 17:11:54 2003 +++ smarty/libs/Config_File.class.php Thu May 8 10:21:13 2003 @@ -37,7 +37,7 @@ * @package Smarty */ -/* $Id: Config_File.class.php,v 1.46 2003/04/20 21:11:54 cellog Exp $ */ +/* $Id: Config_File.class.php,v 1.47 2003/05/08 14:21:13 mohrt Exp $ */ /** * Config file reading class * @package Smarty @@ -73,7 +73,6 @@ /** @access private */ var $_config_path = ""; var $_config_data = array(); - var $_separator = ""; /**#@-*/ /** @@ -83,11 +82,6 @@ */ 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)) $this->set_path($config_path); } @@ -106,7 +100,7 @@ return; } - $this->_config_path = $config_path . $this->_separator; + $this->_config_path = $config_path . DIRECTORY_SEPARATOR; } }

« previous php.smarty.cvs (#595) next »