Not all apps are from the appstore
Fixes #10504 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
94c35d542f
commit
106ce3368d
|
@ -251,9 +251,11 @@ class AppSettingsController extends Controller {
|
||||||
|
|
||||||
// Extend existing app details
|
// Extend existing app details
|
||||||
$apps = array_map(function($appData) use ($dependencyAnalyzer) {
|
$apps = array_map(function($appData) use ($dependencyAnalyzer) {
|
||||||
$appstoreData = $appData['appstoreData'];
|
if (isset($appData['appstoreData'])) {
|
||||||
$appData['screenshot'] = isset($appstoreData['screenshots'][0]['url']) ? 'https://usercontent.apps.nextcloud.com/'.base64_encode($appstoreData['screenshots'][0]['url']) : '';
|
$appstoreData = $appData['appstoreData'];
|
||||||
$appData['category'] = $appstoreData['categories'];
|
$appData['screenshot'] = isset($appstoreData['screenshots'][0]['url']) ? 'https://usercontent.apps.nextcloud.com/' . base64_encode($appstoreData['screenshots'][0]['url']) : '';
|
||||||
|
$appData['category'] = $appstoreData['categories'];
|
||||||
|
}
|
||||||
|
|
||||||
$newVersion = $this->installer->isUpdateAvailable($appData['id']);
|
$newVersion = $this->installer->isUpdateAvailable($appData['id']);
|
||||||
if($newVersion && $this->appManager->isInstalled($appData['id'])) {
|
if($newVersion && $this->appManager->isInstalled($appData['id'])) {
|
||||||
|
|
Loading…
Reference in New Issue