diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-01-12 21:08:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-12 21:08:46 +0100 |
commit | 11cae98394884830e2d5e03fdec95f3c77aced92 (patch) | |
tree | 8fa18c0e6ebda6621f17c62f329c1ac5647e2ca5 /lib | |
parent | e39d96af3daa135ef81cc18e0925d881f0362c2e (diff) | |
parent | 2f89f5fd13334506ee5f137697149a237f1c2919 (diff) | |
download | nextcloud-server-11cae98394884830e2d5e03fdec95f3c77aced92.tar.gz nextcloud-server-11cae98394884830e2d5e03fdec95f3c77aced92.zip |
Merge pull request #18786 from nextcloud/bugfix/noid/fix_fileName_apiEndPointName_issue
AppFetcher: Distinguish between fileName and endpointName
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/App/AppStore/Fetcher/AppFetcher.php | 1 | ||||
-rw-r--r-- | lib/private/App/AppStore/Fetcher/CategoryFetcher.php | 1 | ||||
-rw-r--r-- | lib/private/App/AppStore/Fetcher/Fetcher.php | 4 |
3 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/App/AppStore/Fetcher/AppFetcher.php b/lib/private/App/AppStore/Fetcher/AppFetcher.php index 456b07190fb..d6affe4f09b 100644 --- a/lib/private/App/AppStore/Fetcher/AppFetcher.php +++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php @@ -68,6 +68,7 @@ class AppFetcher extends Fetcher { ); $this->fileName = 'apps.json'; + $this->endpointName = 'apps.json'; $this->compareVersion = $compareVersion; $this->ignoreMaxVersion = true; } diff --git a/lib/private/App/AppStore/Fetcher/CategoryFetcher.php b/lib/private/App/AppStore/Fetcher/CategoryFetcher.php index 904c401c153..7fd3969cd04 100644 --- a/lib/private/App/AppStore/Fetcher/CategoryFetcher.php +++ b/lib/private/App/AppStore/Fetcher/CategoryFetcher.php @@ -53,5 +53,6 @@ class CategoryFetcher extends Fetcher { $logger ); $this->fileName = 'categories.json'; + $this->endpointName = 'categories.json'; } } diff --git a/lib/private/App/AppStore/Fetcher/Fetcher.php b/lib/private/App/AppStore/Fetcher/Fetcher.php index 76a37bfa7de..224ed7d1f0d 100644 --- a/lib/private/App/AppStore/Fetcher/Fetcher.php +++ b/lib/private/App/AppStore/Fetcher/Fetcher.php @@ -55,6 +55,8 @@ abstract class Fetcher { /** @var string */ protected $fileName; /** @var string */ + protected $endpointName; + /** @var string */ protected $version; /** @var string */ protected $channel; @@ -219,6 +221,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; } } |