From c87806911811f045f95da278329ecfe5b2d8db59 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Fri, 12 Aug 2011 15:21:56 -0400 Subject: [PATCH] Pass attributes as vars to label --- program/include/rcube_template.php | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php index b9a43d3..f5c741f 100755 --- a/program/include/rcube_template.php +++ b/program/include/rcube_template.php @@ -681,7 +681,9 @@ // 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; -- Gitblit v1.9.1