Remove unused code.
This commit is contained in:
parent
95fc7f4cb7
commit
f17876d093
|
@ -60,39 +60,6 @@ function app_sort($a, $b){
|
||||||
}
|
}
|
||||||
usort($apps, 'app_sort');
|
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 = new OC_Template( "settings", "apps", "user" );
|
||||||
$tmpl->assign('apps',$apps, false);
|
$tmpl->assign('apps',$apps, false);
|
||||||
$appid = (isset($_GET['appid'])?strip_tags($_GET['appid']):'');
|
$appid = (isset($_GET['appid'])?strip_tags($_GET['appid']):'');
|
||||||
|
|
Loading…
Reference in New Issue