cvs: smarty /libs Config_File.class.php

From: Date: Thu, 08 May 2003 14:29:44 +0000
Subject: cvs: smarty /libs Config_File.class.php
Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-596@lists.php.net to get a copy of this message
mohrt Thu May 8 10:29:44 2003 EDT Modified files: /smarty/libs Config_File.class.php Log: only add DIRECTORY_SEPARATOR if it isn't already present Index: smarty/libs/Config_File.class.php diff -u smarty/libs/Config_File.class.php:1.47 smarty/libs/Config_File.class.php:1.48 --- smarty/libs/Config_File.class.php:1.47 Thu May 8 10:21:13 2003 +++ smarty/libs/Config_File.class.php Thu May 8 10:29:44 2003 @@ -37,7 +37,7 @@ * @package Smarty */ -/* $Id: Config_File.class.php,v 1.47 2003/05/08 14:21:13 mohrt Exp $ */ +/* $Id: Config_File.class.php,v 1.48 2003/05/08 14:29:44 mohrt Exp $ */ /** * Config file reading class * @package Smarty @@ -99,8 +99,11 @@ $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; } }

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