- added $error_muting to suppress error messages even for badly implemented error_handlers

- reverted r4301
This commit is contained in:
rodneyrehm
2011-09-21 22:02:54 +00:00
parent b77446463f
commit 7a6b9dba91
8 changed files with 119 additions and 37 deletions

View File

@@ -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