Pass attributes as vars to label

release-0.6
thomascube 13 years ago
parent 615fb1c069
commit c878069118

@ -681,7 +681,9 @@ class rcube_template extends rcube_html_page
// show a label // show a label
case 'label': case 'label':
if ($attrib['name'] || $attrib['command']) { if ($attrib['name'] || $attrib['command']) {
$label = rcube_label($attrib + array('vars' => array('product' => $this->config['product_name']))); $vars = $attrib + array('product' => $this->config['product_name']);
unset($vars['name'], $vars['command']);
$label = rcube_label($attrib + array('vars' => $vars));
return !$attrbi['noshow'] ? Q($label) : ''; return !$attrbi['noshow'] ? Q($label) : '';
} }
break; break;

Loading…
Cancel
Save