mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 06:14:25 +02:00
config/general: remove obsolete environment setting
This commit is contained in:
parent
8fd606cd03
commit
8d6e6421ea
@ -140,29 +140,6 @@ class GeneralForm extends Form
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the checkbox for using the development environment to this form
|
||||
*
|
||||
* @param Zend_Config $cfg The "global" section of the config.ini
|
||||
*/
|
||||
private function addDevelopmentCheckbox(Zend_Config $cfg)
|
||||
{
|
||||
$env = $cfg->get('environment', 'development');
|
||||
$this->addElement(
|
||||
'checkbox',
|
||||
'environment',
|
||||
array(
|
||||
'label' => 'Development Mode',
|
||||
'required' => true,
|
||||
'helptext' => 'Set true to show more detailed errors and disable certain optimizations in order to '
|
||||
. 'make debugging easier.',
|
||||
'tooltip' => 'More verbose output',
|
||||
'value' => $env === 'development'
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a select field for setting the default language
|
||||
*
|
||||
@ -374,7 +351,6 @@ class GeneralForm extends Form
|
||||
$preferences = new Zend_Config(array());
|
||||
}
|
||||
$this->setName('form_config_general');
|
||||
$this->addDevelopmentCheckbox($global);
|
||||
$this->addLanguageSelection($global);
|
||||
$this->addTimezoneSelection($global);
|
||||
$this->addModuleSettings($global);
|
||||
@ -411,7 +387,6 @@ class GeneralForm extends Form
|
||||
|
||||
$values = $this->getValues();
|
||||
$cfg = clone $config;
|
||||
$cfg->global->environment = ($values['environment'] == 1) ? 'development' : 'production';
|
||||
$cfg->global->language = $values['language'];
|
||||
$cfg->global->timezone = $values['timezone'];
|
||||
$cfg->global->modulePath = $values['module_path'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user