made template_exists() quiet when the template does not exist (thanks

to konstatin for pointing this out)
This commit is contained in:
messju
2003-08-20 11:23:17 +00:00
parent 651cfd2b7d
commit b2b2338175

View File

@@ -1108,7 +1108,7 @@ class Smarty
*/ */
function template_exists($tpl_file) function template_exists($tpl_file)
{ {
$_params = array('resource_name' => $tpl_file, 'get_source'=>false); $_params = array('resource_name' => $tpl_file, 'quiet'=>true, 'get_source'=>false);
return $this->_fetch_resource_info($_params); return $this->_fetch_resource_info($_params);
} }