From eea731e906ed9c64060a1617761ba8e361c53f8a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 26 Aug 2009 17:09:07 +0000 Subject: [PATCH] allow to add further options behind type, separated with a colon --- etemplate/inc/class.historylog_widget.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.historylog_widget.inc.php b/etemplate/inc/class.historylog_widget.inc.php index 70ca332479..5afeb4935d 100644 --- a/etemplate/inc/class.historylog_widget.inc.php +++ b/etemplate/inc/class.historylog_widget.inc.php @@ -69,7 +69,12 @@ class historylog_widget } //echo $value.'/'.$cell['size']; _debug_array($status_widgets); $type = isset($status_widgets[$cell['size']]) ? $status_widgets[$cell['size']] : 'label'; - $cell = etemplate::empty_cell($type,$cell['name'],array('readonly' => true)); + $options = ''; + if (!is_array($type) && strpos($type,':') !== false) + { + list($type,$options) = explode(':',$type,2); + } + $cell = etemplate::empty_cell($type,$cell['name'],array('readonly' => true,'size' => $options)); if (is_array($type)) { if (isset($type[0])) // numeric indexed array --> multiple values of 1:N releation