Thomas Bruederli
2014-09-17 8ef203827ff6accd8ebf40051f881508815591ac
Make noshow attribute for roundcube:label tags actually work as supposed
1 files modified
10 ■■■■ changed files
program/include/rcmail_output_html.php 10 ●●●● patch | view | raw | blame | history
program/include/rcmail_output_html.php
@@ -927,17 +927,17 @@
                    $attrib['name'] = $this->eval_expression($attrib['expression']);
                if ($attrib['name'] || $attrib['command']) {
                    // @FIXME: 'noshow' is useless, remove?
                    if ($attrib['noshow']) {
                        return '';
                    }
                    $vars = $attrib + array('product' => $this->config->get('product_name'));
                    unset($vars['name'], $vars['command']);
                    $label   = $this->app->gettext($attrib + array('vars' => $vars));
                    $quoting = !empty($attrib['quoting']) ? strtolower($attrib['quoting']) : (rcube_utils::get_boolean((string)$attrib['html']) ? 'no' : '');
                    // 'noshow' can be used in skins to define new labels
                    if ($attrib['noshow']) {
                        return '';
                    }
                    switch ($quoting) {
                        case 'no':
                        case 'raw':