mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
fix more dir paths
This commit is contained in:
@@ -25,7 +25,7 @@ function smarty_core_write_file($params, &$this)
|
|||||||
|
|
||||||
// write to tmp file, then rename it to avoid
|
// write to tmp file, then rename it to avoid
|
||||||
// file locking race condition
|
// file locking race condition
|
||||||
$_tmp_file = $_dirname . '/' . uniqid('');
|
$_tmp_file = $_dirname . DIRECTORY_SEPARATOR . uniqid('');
|
||||||
|
|
||||||
if (!($fd = @fopen($_tmp_file, 'w'))) {
|
if (!($fd = @fopen($_tmp_file, 'w'))) {
|
||||||
$this->trigger_error("problem writing temporary file '$_tmp_file'");
|
$this->trigger_error("problem writing temporary file '$_tmp_file'");
|
||||||
|
@@ -63,7 +63,7 @@ function smarty_function_config_load($params, &$smarty)
|
|||||||
$_config_dir = $_params['new_file_path'];
|
$_config_dir = $_params['new_file_path'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$_file_path = $_config_dir . '/' . $_file;
|
$_file_path = $_config_dir . DIRECTORY_SEPARATOR . $_file;
|
||||||
$_compile_file = $smarty->_get_compile_path($_file_path);
|
$_compile_file = $smarty->_get_compile_path($_file_path);
|
||||||
|
|
||||||
if($smarty->force_compile
|
if($smarty->force_compile
|
||||||
|
Reference in New Issue
Block a user