diff options
author | Muhammet Kara <muhammet.kara@collabora.com> | 2020-09-14 12:52:48 +0300 |
---|---|---|
committer | Muhammet Kara <muhammet.kara@collabora.com> | 2020-09-14 13:05:56 +0300 |
commit | 6ba4efdf3d489950e513211d42dd3bc32f1147de (patch) | |
tree | 22f05f6e201a2c174ace528668b57f19aa4fe194 /lib | |
parent | 94dab7f3eac3a376645b0234cd3d22c21dd30031 (diff) |
arm64: Adapt CapabilitiesService and document.js
Signed-off-by: Muhammet Kara <muhammet.kara@collabora.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Service/CapabilitiesService.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Service/CapabilitiesService.php b/lib/Service/CapabilitiesService.php index 41fb78eb..be5880dc 100644 --- a/lib/Service/CapabilitiesService.php +++ b/lib/Service/CapabilitiesService.php @@ -54,7 +54,9 @@ class CapabilitiesService { public function getCapabilities() { if ($this->capabilities) { - $isCODEInstalled = $this->getContainer()->getServer()->getAppManager()->isEnabledForUser('richdocumentscode'); + $isARM64 = php_uname('m') === 'aarch64'; + $CODEAppID = $isARM64 ? 'richdocumentscode_arm64' : 'richdocumentscode'; + $isCODEInstalled = $this->getContainer()->getServer()->getAppManager()->isEnabledForUser($CODEAppID); $isCODEEnabled = strpos($this->config->getAppValue('richdocuments', 'wopi_url'), 'proxy.php?req=') !== false; if($isCODEInstalled && $isCODEEnabled && count($this->capabilities) === 0) { $this->refretch(); |