Browse Source
getIncompatibleApps needs a string not an array
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/8471/head
Roeland Jago Douma
8 years ago
No known key found for this signature in database
GPG Key ID: F941078878347C0C
2 changed files with
2 additions and
1 deletions
-
lib/base.php
-
lib/private/App/AppManager.php
|
|
|
@ -373,6 +373,7 @@ class OC { |
|
|
|
|
|
|
|
// get third party apps
|
|
|
|
$ocVersion = \OCP\Util::getVersion(); |
|
|
|
$ocVersion = implode('.', $ocVersion); |
|
|
|
$incompatibleApps = $appManager->getIncompatibleApps($ocVersion); |
|
|
|
$incompatibleShippedApps = []; |
|
|
|
foreach ($incompatibleApps as $appInfo) { |
|
|
|
|
|
|
|
@ -397,7 +397,7 @@ class AppManager implements IAppManager { |
|
|
|
* |
|
|
|
* @internal |
|
|
|
*/ |
|
|
|
public function getIncompatibleApps($version) { |
|
|
|
public function getIncompatibleApps(string $version): array { |
|
|
|
$apps = $this->getInstalledApps(); |
|
|
|
$incompatibleApps = array(); |
|
|
|
foreach ($apps as $appId) { |
|
|
|
|