Browse Source

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>
master^2
Patrik Kernstock 1 year ago
parent
commit
c1f708f61d
2 changed files with 2 additions and 1 deletions
  1. 1
    1
      lib/Controller/SettingsController.php
  2. 1
    0
      lib/Settings/Admin.php

+ 1
- 1
lib/Controller/SettingsController.php View File

@@ -53,8 +53,8 @@ class SettingsController extends Controller{
public function getSettings() {
return new JSONResponse([
'wopi_url' => $this->appConfig->getAppValue('wopi_url'),
'use_groups' => $this->appConfig->getAppValue('use_groups'),
'edit_groups' => $this->appConfig->getAppValue('edit_groups'),
'use_groups' => $this->appConfig->getAppValue('use_groups'),
'doc_format' => $this->appConfig->getAppValue('doc_format'),
]);
}

+ 1
- 0
lib/Settings/Admin.php View File

@@ -51,6 +51,7 @@ class Admin implements ISettings {
'use_groups' => $this->config->getAppValue('richdocuments', 'use_groups'),
'doc_format' => $this->config->getAppValue('richdocuments', 'doc_format'),
'external_apps' => $this->config->getAppValue('richdocuments', 'external_apps'),
'canonical_webroot' => $this->config->getAppValue('richdocuments', 'canonical_webroot'),
],
'blank'
);

Loading…
Cancel
Save