mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-04 21:16:52 +00:00
Make isOnlyofficeEnabled an attribute
Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
parent
f8a244bee2
commit
0c3d919618
5 changed files with 12 additions and 23 deletions
|
|
@ -80,16 +80,15 @@ readonly class ConfigurationController {
|
|||
|
||||
if ($officeSuiteChoice === 'collabora') {
|
||||
$this->configurationManager->SetCollaboraEnabledState(1);
|
||||
$this->configurationManager->SetOnlyofficeEnabledState(0);
|
||||
$this->configurationManager->isOnlyofficeEnabled = false;
|
||||
} elseif ($officeSuiteChoice === 'onlyoffice') {
|
||||
$this->configurationManager->SetCollaboraEnabledState(0);
|
||||
$this->configurationManager->SetOnlyofficeEnabledState(1);
|
||||
$this->configurationManager->isOnlyofficeEnabled = true;
|
||||
} else {
|
||||
$this->configurationManager->SetCollaboraEnabledState(0);
|
||||
$this->configurationManager->SetOnlyofficeEnabledState(0);
|
||||
$this->configurationManager->isOnlyofficeEnabled = false;
|
||||
}
|
||||
$this->configurationManager->isClamavEnabled = isset($request->getParsedBody()['clamav']);
|
||||
}
|
||||
if (isset($request->getParsedBody()['talk'])) {
|
||||
$this->configurationManager->SetTalkEnabledState(1);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue