diff --git a/docs/en/programmers/api-functions/api-template-exists.xml b/docs/en/programmers/api-functions/api-template-exists.xml index 7049e2a6..8f35edf3 100644 --- a/docs/en/programmers/api-functions/api-template-exists.xml +++ b/docs/en/programmers/api-functions/api-template-exists.xml @@ -49,7 +49,7 @@ // set the filename eg index.inc.tpl $mid_template = $_GET['page'].'inc.tpl'; -if( !smarty->template_exists($template_name) ){ +if( !$smarty->template_exists($mid_template) ){ $mid_template = 'page_not_found.inc.tpl'; } $smarty->assign('page_mid', $mid_template);