From 60b0355644fad2234a563e529ec47254bbbfbb86 Mon Sep 17 00:00:00 2001 From: pete_morgan Date: Sun, 5 Jun 2005 18:21:34 +0000 Subject: [PATCH] Another correction --- docs/en/programmers/api-functions/api-template-exists.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);