Merged in OS128-add-additionals-settings (pull request #96)
Os128 add additionals settings
This commit is contained in:
commit
abea0bbb97
|
@ -14,6 +14,11 @@ class GetSettingsController extends Controller {
|
|||
Response::respondSuccess([
|
||||
'language' => Setting::getSetting('language')->getValue(),
|
||||
'reCaptchaKey' => Setting::getSetting('recaptcha-public')->getValue(),
|
||||
'time-zone' => Setting::getSetting('time-zone')->getValue(),
|
||||
'maintenance-mode' => Setting::getSetting('maintenance-mode')->getValue(),
|
||||
'layout' => Setting::getSetting('layout')->getValue(),
|
||||
'allow-attachments' => Setting::getSetting('allow-attachments')->getValue(),
|
||||
'max-size' => Setting::getSetting('max-size')->getValue(),
|
||||
'departments' => Department::getDepartmentNames()
|
||||
]);
|
||||
}
|
||||
|
|
|
@ -33,6 +33,12 @@ class InitSettingsController extends Controller {
|
|||
'smtp-port' => 7070,
|
||||
'smtp-user' => '',
|
||||
'smtp-pass' => '',
|
||||
'time-zone' => 0,
|
||||
'maintenance-mode' => 0,
|
||||
'layout' => 'boxed',
|
||||
'allow-attachments' => 0,
|
||||
'max-size' => 0,
|
||||
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue