summaryrefslogtreecommitdiffstats
path: root/settings/ajax
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-08-31 20:22:03 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-08-31 20:22:03 +0200
commit72e80bf6bd7c1dfe8e6b23787c2ba8d8add098c9 (patch)
tree3d451cf2cbc851bcc75e62f609c5694ab9d2feea /settings/ajax
parent6f8efcfe6162cd7fea68dd0677b7d4a6f1120c1f (diff)
downloadnextcloud-server-72e80bf6bd7c1dfe8e6b23787c2ba8d8add098c9.tar.gz
nextcloud-server-72e80bf6bd7c1dfe8e6b23787c2ba8d8add098c9.zip
send the current owncloud version to the ocs server so that we can filter for compatible apps
Diffstat (limited to 'settings/ajax')
-rw-r--r--settings/ajax/apps/ocs.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/settings/ajax/apps/ocs.php b/settings/ajax/apps/ocs.php
index 082f1cfb922..f68843fac31 100644
--- a/settings/ajax/apps/ocs.php
+++ b/settings/ajax/apps/ocs.php
@@ -30,7 +30,8 @@ $catagoryNames=OC_OCSClient::getCategories();
if(is_array($catagoryNames)){
$categories=array_keys($catagoryNames);
$page=0;
- $externalApps=OC_OCSClient::getApplications($categories,$page);
+ $filter='approved';
+ $externalApps=OC_OCSClient::getApplications($categories,$page,$filter);
foreach($externalApps as $app){
// show only external apps that aren't enabled yet
$local=false;