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