mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +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
|
* Add a select field for setting the default language
|
||||||
*
|
*
|
||||||
@ -374,7 +351,6 @@ class GeneralForm extends Form
|
|||||||
$preferences = new Zend_Config(array());
|
$preferences = new Zend_Config(array());
|
||||||
}
|
}
|
||||||
$this->setName('form_config_general');
|
$this->setName('form_config_general');
|
||||||
$this->addDevelopmentCheckbox($global);
|
|
||||||
$this->addLanguageSelection($global);
|
$this->addLanguageSelection($global);
|
||||||
$this->addTimezoneSelection($global);
|
$this->addTimezoneSelection($global);
|
||||||
$this->addModuleSettings($global);
|
$this->addModuleSettings($global);
|
||||||
@ -411,7 +387,6 @@ class GeneralForm extends Form
|
|||||||
|
|
||||||
$values = $this->getValues();
|
$values = $this->getValues();
|
||||||
$cfg = clone $config;
|
$cfg = clone $config;
|
||||||
$cfg->global->environment = ($values['environment'] == 1) ? 'development' : 'production';
|
|
||||||
$cfg->global->language = $values['language'];
|
$cfg->global->language = $values['language'];
|
||||||
$cfg->global->timezone = $values['timezone'];
|
$cfg->global->timezone = $values['timezone'];
|
||||||
$cfg->global->modulePath = $values['module_path'];
|
$cfg->global->modulePath = $values['module_path'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user