diff options
author | Frank Karlitschek <frank@owncloud.org> | 2013-01-30 13:39:53 +0100 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2013-01-30 13:39:53 +0100 |
commit | 389c4e84153893a04310876ef70943cad53ee3e7 (patch) | |
tree | dc199cc509124435828a31971aa8fe00d6b6d3c0 /lib | |
parent | 3fa4b3abff5040a46720b2d11531d36a65e4836e (diff) | |
download | nextcloud-server-389c4e84153893a04310876ef70943cad53ee3e7.tar.gz nextcloud-server-389c4e84153893a04310876ef70943cad53ee3e7.zip |
mark recommended apps. server part not yet fully implemented
Diffstat (limited to 'lib')
-rw-r--r-- | lib/app.php | 7 | ||||
-rw-r--r-- | lib/ocsclient.php | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/app.php b/lib/app.php index 52df04e73b8..fcf5a65458d 100644 --- a/lib/app.php +++ b/lib/app.php @@ -620,6 +620,13 @@ class OC_App{ $app1[$i]['ocs_id'] = $app['id']; $app1[$i]['internal'] = $app1[$i]['active'] = 0; $app1[$i]['update'] = false; + if($app['label']=='recommended'){ + $app1[$i]['internallabel'] = 'Recommended'; + $app1[$i]['internalclass'] = 'recommendedapp'; + }else{ + $app1[$i]['internallabel'] = '3rd Party'; + $app1[$i]['internalclass'] = 'externalapp'; + } // rating img diff --git a/lib/ocsclient.php b/lib/ocsclient.php index 36930788774..09ccb2be159 100644 --- a/lib/ocsclient.php +++ b/lib/ocsclient.php @@ -123,6 +123,7 @@ class OC_OCSClient{ $app=array(); $app['id']=(string)$tmp[$i]->id; $app['name']=(string)$tmp[$i]->name; + $app['label']=(string)$tmp[$i]->label; $app['version']=(string)$tmp[$i]->version; $app['type']=(string)$tmp[$i]->typeid; $app['typename']=(string)$tmp[$i]->typename; @@ -165,6 +166,7 @@ class OC_OCSClient{ $app['name']=$tmp->name; $app['version']=$tmp->version; $app['type']=$tmp->typeid; + $app['label']=$tmp->label; $app['typename']=$tmp->typename; $app['personid']=$tmp->personid; $app['detailpage']=$tmp->detailpage; |