JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
template: pass additional args to tem_auto_*
authorJason Woofenden <jason@jasonwoof.com>
Mon, 9 Apr 2012 20:42:03 +0000 (16:42 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Mon, 9 Apr 2012 21:36:49 +0000 (17:36 -0400)
template.php

index a20fd64..fc7302b 100644 (file)
@@ -212,7 +212,7 @@ function &tem_row_data($tem, $context)
                function_exists($auto_func)
                        or die("ERROR: template auto function '$auto_func' not found.<br>\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);