summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-08-12 19:21:56 +0000
committerthomascube <thomas@roundcube.net>2011-08-12 19:21:56 +0000
commitc87806911811f045f95da278329ecfe5b2d8db59 (patch)
tree459da4e9ba7fe79b358f091eb6e2839ea3f37b27 /program/include
parent615fb1c06912bd0e13c49575eeb8440028d26117 (diff)
Pass attributes as vars to label
Diffstat (limited to 'program/include')
-rwxr-xr-xprogram/include/rcube_template.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php
index b9a43d3f1..f5c741fc5 100755
--- a/program/include/rcube_template.php
+++ b/program/include/rcube_template.php
@@ -681,7 +681,9 @@ class rcube_template extends rcube_html_page
// show a label
case 'label':
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) : '';
}
break;