X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=template.php;h=fc7302b2ec81edb5ea6ff159f64e9e119cb7c1ac;hb=ea6a853c31842f2c13400c38afa9a539d8f14406;hp=a20fd64b775964f4ee78e1165961d3ce335f5873;hpb=a781daf79ad6d3a3dfec09ac61e8dcc4c8cc1c48;p=wfpl.git diff --git a/template.php b/template.php index a20fd64..fc7302b 100644 --- a/template.php +++ b/template.php @@ -212,7 +212,7 @@ function &tem_row_data($tem, $context) function_exists($auto_func) or die("ERROR: template auto function '$auto_func' not found.
\n"); } - if($auto_func) $value = $auto_func($scope['data'][$key], $key, $scope); + if($auto_func) $value = $auto_func($scope['data'][$key], $key, $scope, $tem['args']); else $value = $scope['data'][$key]; $rows = tem_data_as_rows($value, $key);