Use the same URL everywhere
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
7d910437fd
commit
4077f7141f
|
@ -519,7 +519,7 @@ $CONFIG = array(
|
|||
/**
|
||||
* URL that Nextcloud should use to look for updates
|
||||
*/
|
||||
'updater.server.url' => 'https://updates.nextcloud.com/update-server/',
|
||||
'updater.server.url' => 'https://updates.nextcloud.com/updater_server/',
|
||||
|
||||
/**
|
||||
* Is Nextcloud connected to the Internet or running in a closed network?
|
||||
|
|
|
@ -59,7 +59,7 @@ class VersionCheck {
|
|||
return json_decode($this->config->getAppValue('core', 'lastupdateResult'), true);
|
||||
}
|
||||
|
||||
$updaterUrl = $this->config->getSystemValue('updater.server.url', 'https://updates.nextcloud.com/update-server/');
|
||||
$updaterUrl = $this->config->getSystemValue('updater.server.url', 'https://updates.nextcloud.com/updater_server/');
|
||||
|
||||
$this->config->setAppValue('core', 'lastupdatedat', time());
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@ class VersionCheckTest extends \Test\TestCase {
|
|||
$this->config
|
||||
->expects($this->at(1))
|
||||
->method('getSystemValue')
|
||||
->with('updater.server.url', 'https://updates.nextcloud.com/update-server/')
|
||||
->with('updater.server.url', 'https://updates.nextcloud.com/updater_server/')
|
||||
->willReturnArgument(1);
|
||||
$this->config
|
||||
->expects($this->at(2))
|
||||
|
@ -124,7 +124,7 @@ class VersionCheckTest extends \Test\TestCase {
|
|||
$this->updater
|
||||
->expects($this->once())
|
||||
->method('getUrlContent')
|
||||
->with($this->buildUpdateUrl('https://updates.nextcloud.com/update-server/'))
|
||||
->with($this->buildUpdateUrl('https://updates.nextcloud.com/updater_server/'))
|
||||
->will($this->returnValue($updateXml));
|
||||
|
||||
$this->assertSame($expectedResult, $this->updater->check());
|
||||
|
@ -139,7 +139,7 @@ class VersionCheckTest extends \Test\TestCase {
|
|||
$this->config
|
||||
->expects($this->at(1))
|
||||
->method('getSystemValue')
|
||||
->with('updater.server.url', 'https://updates.nextcloud.com/update-server/')
|
||||
->with('updater.server.url', 'https://updates.nextcloud.com/updater_server/')
|
||||
->willReturnArgument(1);
|
||||
$this->config
|
||||
->expects($this->at(2))
|
||||
|
@ -164,7 +164,7 @@ class VersionCheckTest extends \Test\TestCase {
|
|||
$this->updater
|
||||
->expects($this->once())
|
||||
->method('getUrlContent')
|
||||
->with($this->buildUpdateUrl('https://updates.nextcloud.com/update-server/'))
|
||||
->with($this->buildUpdateUrl('https://updates.nextcloud.com/updater_server/'))
|
||||
->will($this->returnValue($updateXml));
|
||||
|
||||
$this->assertSame([], $this->updater->check());
|
||||
|
@ -187,7 +187,7 @@ class VersionCheckTest extends \Test\TestCase {
|
|||
$this->config
|
||||
->expects($this->at(1))
|
||||
->method('getSystemValue')
|
||||
->with('updater.server.url', 'https://updates.nextcloud.com/update-server/')
|
||||
->with('updater.server.url', 'https://updates.nextcloud.com/updater_server/')
|
||||
->willReturnArgument(1);
|
||||
$this->config
|
||||
->expects($this->at(2))
|
||||
|
@ -215,7 +215,7 @@ class VersionCheckTest extends \Test\TestCase {
|
|||
$this->updater
|
||||
->expects($this->once())
|
||||
->method('getUrlContent')
|
||||
->with($this->buildUpdateUrl('https://updates.nextcloud.com/update-server/'))
|
||||
->with($this->buildUpdateUrl('https://updates.nextcloud.com/updater_server/'))
|
||||
->will($this->returnValue($updateXml));
|
||||
|
||||
$this->assertSame($expectedResult, $this->updater->check());
|
||||
|
@ -232,7 +232,7 @@ class VersionCheckTest extends \Test\TestCase {
|
|||
$this->config
|
||||
->expects($this->at(1))
|
||||
->method('getSystemValue')
|
||||
->with('updater.server.url', 'https://updates.nextcloud.com/update-server/')
|
||||
->with('updater.server.url', 'https://updates.nextcloud.com/updater_server/')
|
||||
->willReturnArgument(1);
|
||||
$this->config
|
||||
->expects($this->at(2))
|
||||
|
@ -257,7 +257,7 @@ class VersionCheckTest extends \Test\TestCase {
|
|||
$this->updater
|
||||
->expects($this->once())
|
||||
->method('getUrlContent')
|
||||
->with($this->buildUpdateUrl('https://updates.nextcloud.com/update-server/'))
|
||||
->with($this->buildUpdateUrl('https://updates.nextcloud.com/updater_server/'))
|
||||
->will($this->returnValue($updateXml));
|
||||
|
||||
$this->assertSame($expectedResult, $this->updater->check());
|
||||
|
|
Loading…
Reference in New Issue