From: Jason Woofenden Date: Mon, 9 Apr 2012 20:42:03 +0000 (-0400) Subject: template: pass additional args to tem_auto_* X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=commitdiff_plain;h=ea6a853c31842f2c13400c38afa9a539d8f14406 template: pass additional args to tem_auto_* --- 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);