summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-08-12 19:21:56 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-08-12 19:21:56 +0000
commit0384decd67f0c2b13986bf256f86a06a82f6c973 (patch)
treedeb5edfb23829d49bc6fbf27ff0bceaa888e3698
parentb0ce6fe8d642123f237fb714dc3e4a1d51959e3b (diff)
Pass attributes as vars to label
git-svn-id: https://svn.roundcube.net/trunk@5060 208e9e7b-5314-0410-a742-e7e81cd9613c
-rwxr-xr-xroundcubemail/program/include/rcube_template.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_template.php b/roundcubemail/program/include/rcube_template.php
index b9a43d3f1..f5c741fc5 100755
--- a/roundcubemail/program/include/rcube_template.php
+++ b/roundcubemail/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;