Remove unused code.

This commit is contained in:
Thomas Tanghus 2012-08-04 20:51:26 +02:00
parent 95fc7f4cb7
commit f17876d093
1 changed files with 0 additions and 33 deletions

View File

@ -60,39 +60,6 @@ function app_sort($a, $b){
}
usort($apps, 'app_sort');
/*
// apps from external repo via OCS
$catagoryNames=OC_OCSClient::getCategories();
if(is_array($catagoryNames)){
$categories=array_keys($catagoryNames);
$page=0;
$externalApps=OC_OCSClient::getApplications($categories,$page);
foreach($externalApps as $app){
// show only external apps that are not exist yet
$local=false;
foreach($apps as $a){
if($a['name']==$app['name']) $local=true;
}
if(!$local) {
if($app['preview']=='') $pre='trans.png'; else $pre=$app['preview'];
$apps[]=array(
'name'=>$app['name'],
'id'=>$app['id'],
'active'=>false,
'description'=>$app['description'],
'author'=>$app['personid'],
'license'=>$app['license'],
'preview'=>$pre,
'internal'=>false,
'internallabel'=>'3rd Party App',
);
}
}
}
*/
$tmpl = new OC_Template( "settings", "apps", "user" );
$tmpl->assign('apps',$apps, false);
$appid = (isset($_GET['appid'])?strip_tags($_GET['appid']):'');