Skip to content
Snippets Groups Projects
Unverified Commit 54baf610 authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Merge pull request #19995 from nextcloud/bugfix/noid/unify_default_types_lookupServerEnabled

Default value of lookupServerEnabled should be the same everywhere
parents 82d4bdd7 789719da
No related branches found
No related tags found
No related merge requests found
...@@ -1046,7 +1046,7 @@ class FederatedShareProvider implements IShareProvider { ...@@ -1046,7 +1046,7 @@ class FederatedShareProvider implements IShareProvider {
if ($this->gsConfig->isGlobalScaleEnabled()) { if ($this->gsConfig->isGlobalScaleEnabled()) {
return true; return true;
} }
$result = $this->config->getAppValue('files_sharing', 'lookupServerEnabled', 'no'); $result = $this->config->getAppValue('files_sharing', 'lookupServerEnabled', 'yes');
return ($result === 'yes'); return ($result === 'yes');
} }
......
...@@ -778,7 +778,7 @@ class FederatedShareProviderTest extends \Test\TestCase { ...@@ -778,7 +778,7 @@ class FederatedShareProviderTest extends \Test\TestCase {
$this->gsConfig->expects($this->once())->method('isGlobalScaleEnabled') $this->gsConfig->expects($this->once())->method('isGlobalScaleEnabled')
->willReturn($gsEnabled); ->willReturn($gsEnabled);
$this->config->expects($this->any())->method('getAppValue') $this->config->expects($this->any())->method('getAppValue')
->with('files_sharing', 'lookupServerEnabled', 'no') ->with('files_sharing', 'lookupServerEnabled', 'yes')
->willReturn($isEnabled); ->willReturn($isEnabled);
$this->assertSame($expected, $this->assertSame($expected,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment