mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
Removed error message from the _read_file() method.
This commit is contained in:
9
NEWS
9
NEWS
@@ -1,6 +1,9 @@
|
|||||||
|
- removed error message from the generic _read_file() method, the caller
|
||||||
|
should take care of that. (Andrei)
|
||||||
|
- fixed a bug with incorrectly combined cache and compile id. (Andrei)
|
||||||
|
|
||||||
Version 1.5.0
|
Version 1.5.0
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
- added include_php built-in function, documented. (Monte)
|
- added include_php built-in function, documented. (Monte)
|
||||||
- added trusted_dir functionality, documented. (Monte)
|
- added trusted_dir functionality, documented. (Monte)
|
||||||
- consolidated secure_dir tests to one function. (Monte)
|
- consolidated secure_dir tests to one function. (Monte)
|
||||||
@@ -12,8 +15,8 @@ Version 1.5.0
|
|||||||
- added $smarty.section.* syntax for accessing section properties,
|
- added $smarty.section.* syntax for accessing section properties,
|
||||||
documented. (Andrei)
|
documented. (Andrei)
|
||||||
- added custom cache handling function ability, documented. (Monte)
|
- added custom cache handling function ability, documented. (Monte)
|
||||||
- added assign attribute to include, include_php, insert, fetch, math, and
|
- added assign attribute to include, include_php, insert, fetch, math, and
|
||||||
counter functions, documented. (Monte)
|
counter functions, documented. (Monte)
|
||||||
- fixed bug with fetch testing for local file when http address. (Monte)
|
- fixed bug with fetch testing for local file when http address. (Monte)
|
||||||
- fixed bug with counter and skipval setting. (Monte)
|
- fixed bug with counter and skipval setting. (Monte)
|
||||||
- made {config_load ...} merge globals from each config file only once per
|
- made {config_load ...} merge globals from each config file only once per
|
||||||
|
@@ -1185,7 +1185,6 @@ function _run_insert_handler($args)
|
|||||||
function _read_file($filename, $start=null, $lines=null)
|
function _read_file($filename, $start=null, $lines=null)
|
||||||
{
|
{
|
||||||
if (!($fd = @fopen($filename, 'r'))) {
|
if (!($fd = @fopen($filename, 'r'))) {
|
||||||
$this->_trigger_error_msg("problem reading '$filename.'");
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
flock($fd, LOCK_SH);
|
flock($fd, LOCK_SH);
|
||||||
|
@@ -1185,7 +1185,6 @@ function _run_insert_handler($args)
|
|||||||
function _read_file($filename, $start=null, $lines=null)
|
function _read_file($filename, $start=null, $lines=null)
|
||||||
{
|
{
|
||||||
if (!($fd = @fopen($filename, 'r'))) {
|
if (!($fd = @fopen($filename, 'r'))) {
|
||||||
$this->_trigger_error_msg("problem reading '$filename.'");
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
flock($fd, LOCK_SH);
|
flock($fd, LOCK_SH);
|
||||||
|
Reference in New Issue
Block a user