Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Karlitschek <karlitschek@kde.org>2012-01-27 20:34:47 +0400
committerFrank Karlitschek <karlitschek@kde.org>2012-01-27 20:34:47 +0400
commit05f1fffddc49678768c90104e6aeaeac2419d95d (patch)
tree3e78dbdd3c4981a9f08f4755d674332c4711aff9 /settings
parentad4e305c964bfe159f1898e72359f9ecaf910b2d (diff)
fix appstore download.
Diffstat (limited to 'settings')
-rw-r--r--settings/apps.php24
1 files changed, 16 insertions, 8 deletions
diff --git a/settings/apps.php b/settings/apps.php
index 40b72639cd6..0889b0c45ed 100644
--- a/settings/apps.php
+++ b/settings/apps.php
@@ -57,14 +57,22 @@ usort($apps, 'app_sort');
$categories=array_keys($catagoryNames);
$externalApps=OC_OCSClient::getApplications($categories);
foreach($externalApps as $app){
- $apps[]=array(
- 'name'=>$app['name'],
- 'id'=>$app['id'],
- 'active'=>false,
- 'description'=>$app['description'],
- 'author'=>$app['personid'],
- 'license'=>$app['license'],
- );
+ // show only external apps that are not exist yet
+ $local=false;
+ foreach($apps as $a){
+ if($a['name']==$app['name']) $local=true;
+ }
+
+ if(!$local) {
+ $apps[]=array(
+ 'name'=>$app['name'],
+ 'id'=>$app['id'],
+ 'active'=>false,
+ 'description'=>$app['description'],
+ 'author'=>$app['personid'],
+ 'license'=>$app['license'],
+ );
+ }
}
}