mirror of
https://github.com/smarty-php/smarty.git
synced 2026-04-29 02:03:31 +02:00
- removed internal muteExpectedErrors() calls in favor of having the implementor call this once from his application
- optimized muteExpectedErrors() to pass errors to the latest registered error handler, if appliccable error muting is now a global thing. this was done because of the overhead set_error_handler imposes and the fact, that only a few people really "need" this. The decision was made by uwe.tews and rodneyrehm. (just in case anyone asks…)
This commit is contained in:
@@ -609,9 +609,7 @@ class Smarty_Template_Source {
|
||||
|
||||
$compiled = new Smarty_Template_Compiled($this);
|
||||
$this->handler->populateCompiledFilepath($compiled, $_template);
|
||||
Smarty::muteExpectedErrors();
|
||||
$compiled->timestamp = @filemtime($compiled->filepath);
|
||||
Smarty::unmuteExpectedErrors();
|
||||
$compiled->exists = !!$compiled->timestamp;
|
||||
|
||||
// runtime cache
|
||||
|
||||
Reference in New Issue
Block a user