From c87806911811f045f95da278329ecfe5b2d8db59 Mon Sep 17 00:00:00 2001 From: thomascube Date: Fri, 12 Aug 2011 19:21:56 +0000 Subject: [PATCH] Pass attributes as vars to label --- program/include/rcube_template.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;