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_morgan1117995776@cvsserver> |
pete_morgan Sun Jun 5 14:22:56 2005 EDT
Modified files:
/smarty/docs/en/programmers/api-functions api-template-exists.xml
Log:
Correction
http://cvs.php.net/diff.php/smarty/docs/en/programmers/api-functions/api-template-exists.xml?r1=1.7&r2=1.8&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.7 smarty/docs/en/programmers/api-functions/api-template-exists.xml:1.8
--- smarty/docs/en/programmers/api-functions/api-template-exists.xml:1.7 Sun Jun 5 14:21:34 2005
+++ smarty/docs/en/programmers/api-functions/api-template-exists.xml Sun Jun 5 14:22:56 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<refentry id="api.template.exists">
<refnamediv>
<refname>template_exists()</refname>
@@ -47,7 +47,7 @@
<?php
// set the filename eg index.inc.tpl
-$mid_template = $_GET['page'].'inc.tpl';
+$mid_template = $_GET['page'].'.inc.tpl';
if( !$smarty->template_exists($mid_template) ){
$mid_template = 'page_not_found.inc.tpl';
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php