mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 02:00:51 -04:00
AppFetcher: Distinguish between fileName and endpointName
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
(cherry picked from commit 2f89f5fd13)
This commit is contained in:
parent
fbc5301143
commit
921e1feaef
4 changed files with 1868 additions and 1782 deletions
|
|
@ -66,6 +66,7 @@ class AppFetcher extends Fetcher {
|
|||
);
|
||||
|
||||
$this->fileName = 'apps.json';
|
||||
$this->endpointName = 'apps.json';
|
||||
$this->compareVersion = $compareVersion;
|
||||
$this->ignoreMaxVersion = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,5 +53,6 @@ class CategoryFetcher extends Fetcher {
|
|||
$logger
|
||||
);
|
||||
$this->fileName = 'categories.json';
|
||||
$this->endpointName = 'categories.json';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,6 +54,8 @@ abstract class Fetcher {
|
|||
/** @var string */
|
||||
protected $fileName;
|
||||
/** @var string */
|
||||
protected $endpointName;
|
||||
/** @var string */
|
||||
protected $version;
|
||||
/** @var string */
|
||||
protected $channel;
|
||||
|
|
@ -218,6 +220,6 @@ abstract class Fetcher {
|
|||
}
|
||||
|
||||
protected function getEndpoint(): string {
|
||||
return $this->config->getSystemValue('appstoreurl', 'https://apps.nextcloud.com/api/v1') . '/' . $this->fileName;
|
||||
return $this->config->getSystemValue('appstoreurl', 'https://apps.nextcloud.com/api/v1') . '/' . $this->endpointName;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue