Fix settings canonical webroot (#173)
* Use same order as in setSettings() func below Signed-off-by: Patrik Kernstock <info@pkern.at> * Fixed Canonical-Webroot setting The Canonical-Webroot setting was not read properly on the /settings/admin/richdocuments settings page. So this also fixes the notices when visting the admin page: "Undefined index: canonical_webroot at /apps/richdocuments/templates/admin.php#44" Signed-off-by: Patrik Kernstock <info@pkern.at>
This commit is contained in:
parent
adaec21323
commit
c1f708f61d
@ -53,8 +53,8 @@ class SettingsController extends Controller{
|
|||||||
public function getSettings() {
|
public function getSettings() {
|
||||||
return new JSONResponse([
|
return new JSONResponse([
|
||||||
'wopi_url' => $this->appConfig->getAppValue('wopi_url'),
|
'wopi_url' => $this->appConfig->getAppValue('wopi_url'),
|
||||||
'use_groups' => $this->appConfig->getAppValue('use_groups'),
|
|
||||||
'edit_groups' => $this->appConfig->getAppValue('edit_groups'),
|
'edit_groups' => $this->appConfig->getAppValue('edit_groups'),
|
||||||
|
'use_groups' => $this->appConfig->getAppValue('use_groups'),
|
||||||
'doc_format' => $this->appConfig->getAppValue('doc_format'),
|
'doc_format' => $this->appConfig->getAppValue('doc_format'),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
@ -51,6 +51,7 @@ class Admin implements ISettings {
|
|||||||
'use_groups' => $this->config->getAppValue('richdocuments', 'use_groups'),
|
'use_groups' => $this->config->getAppValue('richdocuments', 'use_groups'),
|
||||||
'doc_format' => $this->config->getAppValue('richdocuments', 'doc_format'),
|
'doc_format' => $this->config->getAppValue('richdocuments', 'doc_format'),
|
||||||
'external_apps' => $this->config->getAppValue('richdocuments', 'external_apps'),
|
'external_apps' => $this->config->getAppValue('richdocuments', 'external_apps'),
|
||||||
|
'canonical_webroot' => $this->config->getAppValue('richdocuments', 'canonical_webroot'),
|
||||||
],
|
],
|
||||||
'blank'
|
'blank'
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user