Loading patches/037-onlyoffice-active-appicon.patch +14 −11 Original line number Diff line number Diff line From: Ronak <ronak.patel.ext@murena.io> Date: Tue, 23 Jul 2024 11:24:27 +0100 Subject: [PATCH] Apply Active App-Icon for OnlyOffice Apps This patch resolves the issue of the active app-icon for OnlyOffice apps. --- ./custom_apps/onlyoffice/lib/Controller/EditorController.php 2024-07-22 22:58:03 +++ ./custom_apps/onlyoffice/lib/Controller/EditorController-new.php 2024-07-22 23:01:12 @@ -1282,10 +1282,21 @@ +++ ./custom_apps/onlyoffice/lib/Controller/EditorController-new.php 2024-07-23 15:40:54 @@ -1282,10 +1282,23 @@ $csp->addAllowedFrameDomain("'self'"); } $response->setContentSecurityPolicy($csp); Loading @@ -14,12 +15,14 @@ This patch resolves the issue of the active app-icon for OnlyOffice apps. return $response; } - + private function getExt($fileId){ + private function getExt($fileId) + { + $user = $this->userSession->getUser(); + $userId = null; + if (!empty($user)) { + $userId = $user->getUID(); + if (empty($user)) { + return ''; + } + $userId = $user->getUID(); + list($file, $error, $share) = $this->getFile($userId, $fileId); + $fileName = $file->getName(); + $ext = strtolower(pathinfo($fileName, PATHINFO_EXTENSION)); Loading Loading
patches/037-onlyoffice-active-appicon.patch +14 −11 Original line number Diff line number Diff line From: Ronak <ronak.patel.ext@murena.io> Date: Tue, 23 Jul 2024 11:24:27 +0100 Subject: [PATCH] Apply Active App-Icon for OnlyOffice Apps This patch resolves the issue of the active app-icon for OnlyOffice apps. --- ./custom_apps/onlyoffice/lib/Controller/EditorController.php 2024-07-22 22:58:03 +++ ./custom_apps/onlyoffice/lib/Controller/EditorController-new.php 2024-07-22 23:01:12 @@ -1282,10 +1282,21 @@ +++ ./custom_apps/onlyoffice/lib/Controller/EditorController-new.php 2024-07-23 15:40:54 @@ -1282,10 +1282,23 @@ $csp->addAllowedFrameDomain("'self'"); } $response->setContentSecurityPolicy($csp); Loading @@ -14,12 +15,14 @@ This patch resolves the issue of the active app-icon for OnlyOffice apps. return $response; } - + private function getExt($fileId){ + private function getExt($fileId) + { + $user = $this->userSession->getUser(); + $userId = null; + if (!empty($user)) { + $userId = $user->getUID(); + if (empty($user)) { + return ''; + } + $userId = $user->getUID(); + list($file, $error, $share) = $this->getFile($userId, $fileId); + $fileName = $file->getName(); + $ext = strtolower(pathinfo($fileName, PATHINFO_EXTENSION)); Loading