dissable app instalation from apps.owncloud.org interface

This commit is contained in:
Robin Appelman 2011-09-28 22:39:41 +02:00
parent dded8ab27d
commit 3ebf1a5a3b
1 changed files with 16 additions and 15 deletions

View File

@ -43,21 +43,22 @@ foreach($registeredApps as $app){
}
}
$catagoryNames=OC_OCSClient::getCategories();
if(is_array($catagoryNames)){
$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'],
);
}
}
// dissabled for now
// $catagoryNames=OC_OCSClient::getCategories();
// if(is_array($catagoryNames)){
// $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'],
// );
// }
// }