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(); // dissabled for now
if(is_array($catagoryNames)){ // $catagoryNames=OC_OCSClient::getCategories();
$categories=array_keys($catagoryNames); // if(is_array($catagoryNames)){
$externalApps=OC_OCSClient::getApplications($categories); // $categories=array_keys($catagoryNames);
foreach($externalApps as $app){ // $externalApps=OC_OCSClient::getApplications($categories);
$apps[]=array( // foreach($externalApps as $app){
'name'=>$app['name'], // $apps[]=array(
'id'=>$app['id'], // 'name'=>$app['name'],
'active'=>false, // 'id'=>$app['id'],
'description'=>$app['description'], // 'active'=>false,
'author'=>$app['personid'], // 'description'=>$app['description'],
'license'=>$app['license'], // 'author'=>$app['personid'],
); // 'license'=>$app['license'],
} // );
} // }
// }