summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-02-19 15:54:49 +0100
committerGitHub <noreply@github.com>2018-02-19 15:54:49 +0100
commit4e6d98ea8c9219c5c04209572e7b6dd7d7f1dd8e (patch)
tree51d960b534b5379c3613145cb161126400746a58 /lib
parent543e1626dee1ee34c07acd9d2bfd66c94d130211 (diff)
parent1a8916af59d5fd697f9fa1ce7088776d3092c554 (diff)
downloadnextcloud-server-4e6d98ea8c9219c5c04209572e7b6dd7d7f1dd8e.tar.gz
nextcloud-server-4e6d98ea8c9219c5c04209572e7b6dd7d7f1dd8e.zip
Merge pull request #8424 from nextcloud/fix/update-app
Fix updating an app
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Updater.php2
-rw-r--r--lib/private/legacy/app.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Updater.php b/lib/private/Updater.php
index 727147e0905..c70113e1c7d 100644
--- a/lib/private/Updater.php
+++ b/lib/private/Updater.php
@@ -385,7 +385,7 @@ class Updater extends BasicEmitter {
private function checkAppsRequirements() {
$isCoreUpgrade = $this->isCodeUpgrade();
$apps = OC_App::getEnabledApps();
- $version = Util::getVersion();
+ $version = implode('.', Util::getVersion());
$disabledApps = [];
$appManager = \OC::$server->getAppManager();
foreach ($apps as $app) {
diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php
index 4e6ed99f5c3..16e57d43ebc 100644
--- a/lib/private/legacy/app.php
+++ b/lib/private/legacy/app.php
@@ -915,7 +915,7 @@ class OC_App {
* @param string $appId
* @return bool
*/
- public static function updateApp(sstring $appId): bool {
+ public static function updateApp(string $appId): bool {
$appPath = self::getAppPath($appId);
if($appPath === false) {
return false;