update
This commit is contained in:
15
core/plugins/Smarty/function.gv.php
Normal file
15
core/plugins/Smarty/function.gv.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* @author krku
|
||||
*/
|
||||
|
||||
function smarty_function_gv($params, &$smarty) {
|
||||
$obj = $smarty->get_template_vars($params['o']);
|
||||
|
||||
if ($obj && is_object($obj) && method_exists($obj, $params['f'])) {
|
||||
return $obj->$params['f']();
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user