From 59997773415ae966249dcaf15924255c42589de6 Mon Sep 17 00:00:00 2001 From: "uwe.tews@googlemail.com" Date: Sun, 12 Dec 2010 12:45:52 +0000 Subject: [PATCH] - bugfix fixed typo regarding yesterdays change to allow streamWrapper --- change_log.txt | 3 +++ libs/sysplugins/smarty_internal_write_file.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/change_log.txt b/change_log.txt index c6379b44..d94c628e 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,4 +1,7 @@ ===== SVN trunk ===== +12/12/2010 +- bugfix fixed typo regarding yesterdays change to allow streamWrapper + 11/12/2010 - bugfix nested block tags in template inheritance child templates did not work correctly - bugfix {$smarty.current_dir} in child template did not point to dir of child template diff --git a/libs/sysplugins/smarty_internal_write_file.php b/libs/sysplugins/smarty_internal_write_file.php index b7085239..4e34335f 100644 --- a/libs/sysplugins/smarty_internal_write_file.php +++ b/libs/sysplugins/smarty_internal_write_file.php @@ -31,7 +31,7 @@ class Smarty_Internal_Write_File { $_tmp_file = tempnam($_dirpath, 'wrt'); if (!($fd = @fopen($_tmp_file, 'wb'))) { - $_tmp_file = $_dirname . DS . uniqid('wrt'); + $_tmp_file = $_dirpath . DS . uniqid('wrt'); if (!($fd = @fopen($_tmp_file, 'wb'))) { throw new SmartyException("unable to write file {$_tmp_file}"); return false;