diff options
author | Crack <piotrprz@gmail.com> | 2010-07-14 00:59:21 +0400 |
---|---|---|
committer | Crack <piotrprz@gmail.com> | 2010-07-14 00:59:21 +0400 |
commit | e7dd9a7c678f5b680dcaa93f7bf337e058df4677 (patch) | |
tree | 6ded1c69bba02afe20957ff2f53982ec4f776dd8 /prefs_forms.php | |
parent | 57a8d902f4016b8b4e6d5f8cf866c54a4ba93f96 (diff) |
allow to partially import broken configs - show message with error list and import only correct values
Diffstat (limited to 'prefs_forms.php')
-rw-r--r-- | prefs_forms.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/prefs_forms.php b/prefs_forms.php index 9e3a307894..a73e529d39 100644 --- a/prefs_forms.php +++ b/prefs_forms.php @@ -46,10 +46,10 @@ if (!$form_display->process(false)) { if ($form_display->hasErrors()) { // form has errors ?> - <fieldset> + <div class="warning config-form"> <b><?php echo __('Submitted form contains errors') ?></b> <?php $form_display->displayErrors(); ?> - </fieldset> + </div> <?php $form_display->display(true, true); } else { @@ -66,6 +66,7 @@ if (!$form_display->process(false)) { $form_display->display(true, true); } } +// todo: remove debug $GLOBALS['error_handler']->dispAllErrors(); /** |