setValue(CE_CFG_DISPLAY_INFO, $new_value); $new_value = false; if (isset($_POST['ce_display_error'])) { if ("1" == $_POST['ce_display_error']) { $new_value = true; } } $ce_config->setValue(CE_CFG_DISPLAY_ERROR, $new_value); // Save config $saved = $ce_config->saveConfig(); global $page; if ($saved) { array_push($page['infos'], l10n('ce_config_saved')); } else { array_push($page['errors'], l10n('ce_config_saved_with_errors')); } } $template->assign('display_info', ($ce_config->getValue(CE_CFG_DISPLAY_INFO))? CE_CHECKED:''); $template->assign('display_error', ($ce_config->getValue(CE_CFG_DISPLAY_ERROR))? CE_CHECKED:''); ?>