From 6e0d46bdf787c04134f924f6ba07b914431a3e50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Sun, 17 Sep 2023 17:44:51 +0200 Subject: [PATCH] fix: Mobile support shall be enabled by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Capabilities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Capabilities.php b/lib/Capabilities.php index aa6fac6d90..96e811dd17 100644 --- a/lib/Capabilities.php +++ b/lib/Capabilities.php @@ -149,7 +149,7 @@ public function getCapabilities() { 'mimetypesNoDefaultOpen' => array_values($optionalMimetypes), 'mimetypesSecureView' => $this->config->useSecureViewAdditionalMimes() ? self::SECURE_VIEW_ADDITIONAL_MIMES : [], 'collabora' => $collaboraCapabilities, - 'direct_editing' => ($collaboraCapabilities['hasMobileSupport'] ?? false) && $this->config->getAppValue('mobile_editing') ?: false, + 'direct_editing' => ($collaboraCapabilities['hasMobileSupport'] ?? false) && $this->config->getAppValue('mobile_editing', 'yes') === 'yes', 'templates' => ($collaboraCapabilities['hasTemplateSaveAs'] ?? false) || ($collaboraCapabilities['hasTemplateSource'] ?? false), 'productName' => $this->capabilitiesService->getProductName(), 'editonline_endpoint' => $this->urlGenerator->linkToRouteAbsolute('richdocuments.document.editOnline'),