reverted stuff

This commit is contained in:
messju
2004-04-16 08:03:07 +00:00
parent 729ebe26ed
commit b73d2a7e63
8 changed files with 18 additions and 33 deletions
+1 -3
View File
@@ -25,9 +25,7 @@ function smarty_core_write_file($params, &$smarty)
// write to tmp file, then rename it to avoid
// file locking race condition
# $_tmp_file = $_dirname . DIRECTORY_SEPARATOR . uniqid('');
$_tmp_file = tempnam($_dirname , '_tmp');
# $_tmp_file = $_dirname . DIRECTORY_SEPARATOR . uniqid('', true);
$_tmp_file = $_dirname . DIRECTORY_SEPARATOR . uniqid('');
if (!($fd = @fopen($_tmp_file, 'w'))) {
$smarty->trigger_error("problem writing temporary file '$_tmp_file'");