mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-26 03:09:10 +02:00
Move configuration and preference handling to Form base class
Moved setConfiguration, setUserPreferences and getUserPreferences to our Form base class due to some redundancies. refs #4581
This commit is contained in:
parent
86d721c317
commit
14b56151aa
@ -156,7 +156,10 @@ class LoggingForm extends Form
|
|||||||
'label' => 'Debug Log Path',
|
'label' => 'Debug Log Path',
|
||||||
'required' => $this->shouldDisplayDebugLog($debug),
|
'required' => $this->shouldDisplayDebugLog($debug),
|
||||||
'condition' => $this->shouldDisplayDebugLog($debug),
|
'condition' => $this->shouldDisplayDebugLog($debug),
|
||||||
'value' => $debug->get('target', $this->getBaseDir() . '/var/log/icinga2.debug.log'),
|
'value' => $debug->get(
|
||||||
|
'target',
|
||||||
|
$this->getBaseDir() . '/var/log/icinga2.debug.log'
|
||||||
|
),
|
||||||
'helptext' => 'Set the path to the debug log'
|
'helptext' => 'Set the path to the debug log'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -46,6 +46,7 @@ require_once BaseTestCase::$libDir . '/Util/DateTimeFactory.php';
|
|||||||
// @codingStandardsIgnoreEnd
|
// @codingStandardsIgnoreEnd
|
||||||
|
|
||||||
use \DateTimeZone;
|
use \DateTimeZone;
|
||||||
|
use \Zend_Config;
|
||||||
use \Icinga\User\Preferences;
|
use \Icinga\User\Preferences;
|
||||||
use \Zend_View_Helper_DateFormat;
|
use \Zend_View_Helper_DateFormat;
|
||||||
use \Icinga\Util\DateTimeFactory;
|
use \Icinga\Util\DateTimeFactory;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user