thomascube
2011-08-12 c87806911811f045f95da278329ecfe5b2d8db59
Pass attributes as vars to label

1 files modified
4 ■■■ changed files
program/include/rcube_template.php 4 ●●● patch | view | raw | blame | history
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;