Merged in OS128-add-additionals-settings (pull request #96)

Os128 add additionals settings
This commit is contained in:
Ivan Diaz 2016-12-13 23:25:07 -03:00
commit abea0bbb97
2 changed files with 11 additions and 0 deletions

View File

@ -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()
]);
}

View File

@ -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,
]);
}