//remove unused configuration

This commit is contained in:
Vincent Augagneur
2013-07-10 17:33:02 +02:00
parent e8b8fa0527
commit 53ec2aab7e

View File

@@ -94,9 +94,6 @@ class Blocknewsletter extends Module
if (Tools::isSubmit('submitUpdate'))
{
if (isset($_POST['new_page']) && Validate::isBool((int)$_POST['new_page']))
Configuration::updateValue('NW_CONFIRMATION_NEW_PAGE', $_POST['new_page']);
if (isset($_POST['conf_email']) && Validate::isBool((int)$_POST['conf_email']))
Configuration::updateValue('NW_CONFIRMATION_EMAIL', pSQL($_POST['conf_email']));
@@ -120,12 +117,6 @@ class Blocknewsletter extends Module
<form method="post" action="'.Tools::safeOutput($_SERVER['REQUEST_URI']).'">
<fieldset>
<legend><img src="'.$this->_path.'logo.gif" />'.$this->l('Settings').'</legend>
<label>'.$this->l('Woulld you like to display configuration in a new page?').'</label>
<div class="margin-form">
<input type="radio" name="new_page" value="1" '.(Configuration::get('NW_CONFIRMATION_NEW_PAGE') ? 'checked="checked" ' : '').'/>'.$this->l('Yes').'
<input type="radio" name="new_page" value="0" '.(!Configuration::get('NW_CONFIRMATION_NEW_PAGE') ? 'checked="checked" ' : '').'/>'.$this->l('No').'
</div>
<div class="clear"></div>
<label>'.$this->l('Would you like to send a verification email after subscription?').'</label>
<div class="margin-form">
<input type="radio" name="verif_email" value="1" '.(Configuration::get('NW_VERIFICATION_EMAIL') ? 'checked="checked" ' : '').'/>'.$this->l('Yes').'