mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
fix directory separator code, use DIRECTORY_SEPARATOR
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user