diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-08-12 19:21:56 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-08-12 19:21:56 +0000 |
| commit | 0384decd67f0c2b13986bf256f86a06a82f6c973 (patch) | |
| tree | deb5edfb23829d49bc6fbf27ff0bceaa888e3698 /roundcubemail/program/include/rcube_template.php | |
| parent | b0ce6fe8d642123f237fb714dc3e4a1d51959e3b (diff) | |
Pass attributes as vars to label
git-svn-id: https://svn.roundcube.net/trunk@5060 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_template.php')
| -rwxr-xr-x | roundcubemail/program/include/rcube_template.php | 4 |
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; |
