diff --git a/docs/en/programmers/api-functions/api-template-exists.xml b/docs/en/programmers/api-functions/api-template-exists.xml index e540b980..7049e2a6 100644 --- a/docs/en/programmers/api-functions/api-template-exists.xml +++ b/docs/en/programmers/api-functions/api-template-exists.xml @@ -47,12 +47,12 @@ template_exists($template_name) ){ - $filename= 'page_not_found.inc.tpl'; - } -$smarty->assign('page_mid', $template_name); + $mid_template = 'page_not_found.inc.tpl'; +} +$smarty->assign('page_mid', $mid_template); $smarty->display('page_container.tpl');