From 0384decd67f0c2b13986bf256f86a06a82f6c973 Mon Sep 17 00:00:00 2001 From: thomasb Date: Fri, 12 Aug 2011 19:21:56 +0000 Subject: Pass attributes as vars to label git-svn-id: https://svn.roundcube.net/trunk@5060 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/rcube_template.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3