mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
Separator setting fix.
This commit is contained in:
@@ -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 = "/";
|
||||||
|
@@ -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 = "/";
|
||||||
|
Reference in New Issue
Block a user