diff options
author | Georg Ehrke <developer@georgehrke.com> | 2020-03-17 10:39:59 +0100 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2020-03-17 10:41:19 +0100 |
commit | 789719da90dd8273b2f03d90838ef2f96b981d02 (patch) | |
tree | ece310712358a03601510c564f639b591214dd93 /apps/federatedfilesharing | |
parent | 48bdd322a210e5e80ad1bb80ecbe86fad5ba28d1 (diff) | |
download | nextcloud-server-789719da90dd8273b2f03d90838ef2f96b981d02.tar.gz nextcloud-server-789719da90dd8273b2f03d90838ef2f96b981d02.zip |
Default value of lookupServerEnabled should be the same everywhere
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/federatedfilesharing')
-rw-r--r-- | apps/federatedfilesharing/lib/FederatedShareProvider.php | 2 | ||||
-rw-r--r-- | 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 cf5ee133ea6..575e3cdff57 100644 --- a/apps/federatedfilesharing/lib/FederatedShareProvider.php +++ b/apps/federatedfilesharing/lib/FederatedShareProvider.php @@ -1046,7 +1046,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 a92426b0bef..c8acdd3df53 100644 --- a/apps/federatedfilesharing/tests/FederatedShareProviderTest.php +++ b/apps/federatedfilesharing/tests/FederatedShareProviderTest.php @@ -778,7 +778,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, |