From e990a43709f7cac07fa261813939ea643a2d8dc9 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Tue, 17 Mar 2020 10:39:59 +0100 Subject: [PATCH] Default value of lookupServerEnabled should be the same everywhere Signed-off-by: Georg Ehrke --- apps/federatedfilesharing/lib/FederatedShareProvider.php | 2 +- apps/federatedfilesharing/tests/FederatedShareProviderTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/federatedfilesharing/lib/FederatedShareProvider.php b/apps/federatedfilesharing/lib/FederatedShareProvider.php index 67089cba9d3..cc607c64bb4 100644 --- a/apps/federatedfilesharing/lib/FederatedShareProvider.php +++ b/apps/federatedfilesharing/lib/FederatedShareProvider.php @@ -1043,7 +1043,7 @@ class FederatedShareProvider implements IShareProvider { if ($this->gsConfig->isGlobalScaleEnabled()) { return true; } - $result = $this->config->getAppValue('files_sharing', 'lookupServerEnabled', 'no'); + $result = $this->config->getAppValue('files_sharing', 'lookupServerEnabled', 'yes'); return ($result === 'yes'); } diff --git a/apps/federatedfilesharing/tests/FederatedShareProviderTest.php b/apps/federatedfilesharing/tests/FederatedShareProviderTest.php index 98ad8832fa1..2a060b2d412 100644 --- a/apps/federatedfilesharing/tests/FederatedShareProviderTest.php +++ b/apps/federatedfilesharing/tests/FederatedShareProviderTest.php @@ -777,7 +777,7 @@ class FederatedShareProviderTest extends \Test\TestCase { $this->gsConfig->expects($this->once())->method('isGlobalScaleEnabled') ->willReturn($gsEnabled); $this->config->expects($this->any())->method('getAppValue') - ->with('files_sharing', 'lookupServerEnabled', 'no') + ->with('files_sharing', 'lookupServerEnabled', 'yes') ->willReturn($isEnabled); $this->assertSame($expected, -- 2.39.5