summaryrefslogtreecommitdiffstats
path: root/lib/private/App
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-03-06 21:31:06 +0100
committerGitHub <noreply@github.com>2018-03-06 21:31:06 +0100
commitc88112bb419e0dd8d640a445dd83cb3305b8481f (patch)
treec83193d4e836193a63ce7eb346c3a87ba1af2345 /lib/private/App
parent846b0d6a42ba5997f57a46be399f8067acfa854d (diff)
parentc7b322b8638a92aebfccc41abda703da4123d21c (diff)
downloadnextcloud-server-c88112bb419e0dd8d640a445dd83cb3305b8481f.tar.gz
nextcloud-server-c88112bb419e0dd8d640a445dd83cb3305b8481f.zip
Merge pull request #8579 from nextcloud/feature/2692/merge-can-i-update
Display a list of unavailable apps for updates (aka. merge "Can I update?")
Diffstat (limited to 'lib/private/App')
-rw-r--r--lib/private/App/AppStore/Fetcher/AppFetcher.php4
-rw-r--r--lib/private/App/AppStore/Fetcher/Fetcher.php2
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/App/AppStore/Fetcher/AppFetcher.php b/lib/private/App/AppStore/Fetcher/AppFetcher.php
index 63121c079bd..a8fd9349343 100644
--- a/lib/private/App/AppStore/Fetcher/AppFetcher.php
+++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php
@@ -133,9 +133,11 @@ class AppFetcher extends Fetcher {
/**
* @param string $version
+ * @param string $filename
*/
- public function setVersion($version) {
+ public function setVersion(string $version, string $fileName = 'apps.json') {
parent::setVersion($version);
+ $this->fileName = $fileName;
$this->setEndpoint();
}
}
diff --git a/lib/private/App/AppStore/Fetcher/Fetcher.php b/lib/private/App/AppStore/Fetcher/Fetcher.php
index 4dbc360c0c4..172584c522b 100644
--- a/lib/private/App/AppStore/Fetcher/Fetcher.php
+++ b/lib/private/App/AppStore/Fetcher/Fetcher.php
@@ -194,7 +194,7 @@ abstract class Fetcher {
* Set the current Nextcloud version
* @param string $version
*/
- public function setVersion($version) {
+ public function setVersion(string $version) {
$this->version = $version;
}
}