mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
only add DIRECTORY_SEPARATOR if it isn't already present
This commit is contained in:
@@ -99,8 +99,11 @@ class Config_File {
|
|||||||
$this->_trigger_error_msg("Bad config file path '$config_path'");
|
$this->_trigger_error_msg("Bad config file path '$config_path'");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(substr($config_path, -1) != DIRECTORY_SEPARATOR) {
|
||||||
|
$config_path .= DIRECTORY_SEPARATOR;
|
||||||
|
}
|
||||||
|
|
||||||
$this->_config_path = $config_path . DIRECTORY_SEPARATOR;
|
$this->_config_path = $config_path;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user