mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-16 05:55:20 +02:00
- added $error_muting to suppress error messages even for badly implemented error_handlers
- reverted r4301
This commit is contained in:
@@ -422,7 +422,7 @@ abstract class Smarty_Resource {
|
||||
$resource_name = $template_resource;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$resource = Smarty_Resource::load($smarty, $resource_type);
|
||||
$source = new Smarty_Template_Source($resource, $smarty, $template_resource, $resource_type, $resource_name);
|
||||
$resource->populate($source, $_template);
|
||||
@@ -609,7 +609,9 @@ 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