mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-07-22 14:13:06 +00:00
eurooffice should only get enabled on new instances
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
@@ -102,7 +102,8 @@ class ConfigurationManager
|
||||
}
|
||||
|
||||
public bool $isEuroofficeEnabled {
|
||||
get => $this->get('isEuroofficeEnabled', true);
|
||||
// Only enabled if no other office suite is enabled.
|
||||
get => !$this->isOtherOfficeThanEuroOfficeEnabled() && $this->get('isEuroofficeEnabled', true);
|
||||
set { $this->set('isEuroofficeEnabled', $value); }
|
||||
}
|
||||
|
||||
@@ -531,6 +532,12 @@ class ConfigurationManager
|
||||
return '';
|
||||
}
|
||||
|
||||
// Helper function for EuroOffice to make sure that it does not
|
||||
// get enabled on existing instances after updating the default
|
||||
private function isOtherOfficeThanEuroOfficeEnabled() : bool {
|
||||
return $this->isCollaboraEnabled || $this->isOnlyofficeEnabled;
|
||||
}
|
||||
|
||||
private function isx64Platform() : bool {
|
||||
if (php_uname('m') === 'x86_64') {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user