cvs: smarty /docs/en/programmers/api-functions api-template-exists.xml

"Peter 'Mash' Morgan" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvspete_morgan1117995694@cvsserver>
pete_morgan		Sun Jun  5 14:21:34 2005 EDT

  Modified files:              
    /smarty/docs/en/programmers/api-functions	api-template-exists.xml 
  Log:
  Another correction
  
  
http://cvs.php.net/diff.php/smarty/docs/en/programmers/api-functions/api-template-exists.xml?r1=1.6&r2=1.7&ty=u
Index: smarty/docs/en/programmers/api-functions/api-template-exists.xml
diff -u smarty/docs/en/programmers/api-functions/api-template-exists.xml:1.6 smarty/docs/en/programmers/api-functions/api-template-exists.xml:1.7
--- smarty/docs/en/programmers/api-functions/api-template-exists.xml:1.6	Sun Jun  5 13:56:39 2005
+++ smarty/docs/en/programmers/api-functions/api-template-exists.xml	Sun Jun  5 14:21:34 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
 <refentry id="api.template.exists">
  <refnamediv>
   <refname>template_exists()</refname>
@@ -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);

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.