mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-03 18:04:26 +02:00
Use write mode instead of append.
This commit is contained in:
@@ -772,7 +772,7 @@ class Smarty
|
||||
if ($create_dirs)
|
||||
$this->_create_dir_structure(dirname($filename));
|
||||
|
||||
if (!($fd = fopen($filename, 'a'))) {
|
||||
if (!($fd = fopen($filename, 'w'))) {
|
||||
$this->_trigger_error_msg("problem writing '$filename.'");
|
||||
return false;
|
||||
}
|
||||
|
@@ -772,7 +772,7 @@ class Smarty
|
||||
if ($create_dirs)
|
||||
$this->_create_dir_structure(dirname($filename));
|
||||
|
||||
if (!($fd = fopen($filename, 'a'))) {
|
||||
if (!($fd = fopen($filename, 'w'))) {
|
||||
$this->_trigger_error_msg("problem writing '$filename.'");
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user