cvs: smarty /docs/en/programmers/api-functions api-register-function.xml

"Monte Ohrt" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmohrt1119476010@cvsserver>
mohrt		Wed Jun 22 17:33:30 2005 EDT

  Modified files:              
    /smarty/docs/en/programmers/api-functions	api-register-function.xml 
  Log:
  add smarty object to function example
  
  
http://cvs.php.net/diff.php/smarty/docs/en/programmers/api-functions/api-register-function.xml?r1=1.5&r2=1.6&ty=u
Index: smarty/docs/en/programmers/api-functions/api-register-function.xml
diff -u smarty/docs/en/programmers/api-functions/api-register-function.xml:1.5 smarty/docs/en/programmers/api-functions/api-register-function.xml:1.6
--- smarty/docs/en/programmers/api-functions/api-register-function.xml:1.5	Sun Jun  5 11:47:24 2005
+++ smarty/docs/en/programmers/api-functions/api-register-function.xml	Wed Jun 22 17:33:29 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
 <refentry id="api.register.function">
  <refnamediv>
   <refname>register_function()</refname>
@@ -58,7 +58,7 @@
 <?php
 $smarty->register_function('date_now', 'print_current_date');
 
-function print_current_date($params)
+function print_current_date($params, &$smarty)
 {
   if(empty($params['format'])) {
     $format = "%b %e, %Y";

-- 
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.