summaryrefslogtreecommitdiffstats
path: root/settings/apps.php
diff options
context:
space:
mode:
authorFrank Karlitschek <karlitschek@kde.org>2012-04-21 15:30:58 +0200
committerFrank Karlitschek <karlitschek@kde.org>2012-04-21 15:30:58 +0200
commit6bfe2289be05e9f54272a86a0f957ec41ef32e28 (patch)
tree2cf690624aee2f1a5fa943066d3501499f13562d /settings/apps.php
parentef80ad1d48fa7cb61bb0003c0a22928f075ddc60 (diff)
downloadnextcloud-server-6bfe2289be05e9f54272a86a0f957ec41ef32e28.tar.gz
nextcloud-server-6bfe2289be05e9f54272a86a0f957ec41ef32e28.zip
improve the app installer.
show a label if an app is an internal app or a third party app from the app store. show a preview image of the app if available
Diffstat (limited to 'settings/apps.php')
-rw-r--r--settings/apps.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/settings/apps.php b/settings/apps.php
index 0889b0c45ed..cc161026020 100644
--- a/settings/apps.php
+++ b/settings/apps.php
@@ -39,6 +39,9 @@ foreach($registeredApps as $app){
$info=OC_App::getAppInfo($app);
$active=(OC_Appconfig::getValue($app,'enabled','no')=='yes')?true:false;
$info['active']=$active;
+ $info['internal']=true;
+ $info['internallabel']='Internal App';
+ $info['preview']='trans.png';
$apps[]=$info;
}
}
@@ -64,6 +67,7 @@ usort($apps, 'app_sort');
}
if(!$local) {
+ if($app['preview']=='') $pre='trans.png'; else $pre=$app['preview'];
$apps[]=array(
'name'=>$app['name'],
'id'=>$app['id'],
@@ -71,6 +75,9 @@ usort($apps, 'app_sort');
'description'=>$app['description'],
'author'=>$app['personid'],
'license'=>$app['license'],
+ 'preview'=>$pre,
+ 'internal'=>false,
+ 'internallabel'=>'3rd Party App',
);
}
}