Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a781daf
)
template: pass additional args to tem_auto_*
author
Jason Woofenden
<jason@jasonwoof.com>
Mon, 9 Apr 2012 20:42:03 +0000
(16:42 -0400)
committer
Jason Woofenden
<jason@jasonwoof.com>
Mon, 9 Apr 2012 21:36:49 +0000
(17:36 -0400)
template.php
patch
|
blob
|
history
diff --git
a/template.php
b/template.php
index
a20fd64
..
fc7302b
100644
(file)
--- 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.<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);