mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
made template_exists() quiet when the template does not exist (thanks
to konstatin for pointing this out)
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user