From 5e3a1a62043cc4602f5fc4fb871d09da65b5a277 Mon Sep 17 00:00:00 2001 From: Johan Cwiklinski Date: Sat, 29 Sep 2012 10:23:09 +0200 Subject: Some adaptations required for Smarty3 --- zoom.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'zoom.php') diff --git a/zoom.php b/zoom.php index 979cea9..dedd3fa 100644 --- a/zoom.php +++ b/zoom.php @@ -89,7 +89,11 @@ function getBranchPeople($params) } return $ret; } -$smarty->register_function('getBranchPeople', 'getBranchPeople'); +$smarty->registerPlugin( + 'function', + 'getBranchPeople', + 'getBranchPeople' +); if ( !isset($name) || !$name ) { $smarty->assign('error', 'missing_name'); -- cgit