diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-09-20 08:18:54 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-09-20 08:18:54 +0200 |
commit | b334a01791689a16c8d6b10955df850b891ff40e (patch) | |
tree | 34173fc260a63a18ec56b75825cdc0925c84f594 /program/steps/settings/edit_prefs.inc | |
parent | 1bfd8ac27aa09421e77b629806dc9f667aa32cb6 (diff) | |
parent | c1ff572e176dc930c52063e53364daa315d34666 (diff) |
Merge branch 'master' of github.com:roundcube/roundcubemail
Diffstat (limited to 'program/steps/settings/edit_prefs.inc')
-rw-r--r-- | program/steps/settings/edit_prefs.inc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/program/steps/settings/edit_prefs.inc b/program/steps/settings/edit_prefs.inc index 468e4994d..adf6b1623 100644 --- a/program/steps/settings/edit_prefs.inc +++ b/program/steps/settings/edit_prefs.inc @@ -40,24 +40,21 @@ function rcmail_user_prefs_form($attrib) $out = $form_start; - foreach ($SECTIONS[$CURR_SECTION]['blocks'] as $block) { + foreach ($SECTIONS[$CURR_SECTION]['blocks'] as $class => $block) { if (!empty($block['options'])) { $table = new html_table(array('cols' => 2)); foreach ($block['options'] as $option) { - if ($option['advanced']) - $table->set_row_attribs('advanced'); - if (isset($option['title'])) { $table->add('title', $option['title']); - $table->add(null, $option['content']); + $table->add(null, $option['content']); } else { $table->add(array('colspan' => 2), $option['content']); } } - $out .= html::tag('fieldset', null, html::tag('legend', null, $block['name']) . $table->show($attrib)); + $out .= html::tag('fieldset', $class, html::tag('legend', null, $block['name']) . $table->show($attrib)); } else if (!empty($block['content'])) { $out .= html::tag('fieldset', null, html::tag('legend', null, $block['name']) . $block['content']); |