add smarty object to function example

This commit is contained in:
mohrt
2005-06-22 21:33:29 +00:00
parent 445c6d45b5
commit da3f5bd648

View File

@@ -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";