parent
c25f53c3f9
commit
cfd62d422b
|
@ -21,7 +21,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once('../lib/base.php');
|
require_once '../lib/base.php';
|
||||||
OC_Util::checkAdminUser();
|
OC_Util::checkAdminUser();
|
||||||
|
|
||||||
// Load the files we need
|
// Load the files we need
|
||||||
|
@ -35,11 +35,11 @@ $apps=array();
|
||||||
//TODO which apps do we want to blacklist and how do we integrate blacklisting with the multi apps folder feature
|
//TODO which apps do we want to blacklist and how do we integrate blacklisting with the multi apps folder feature
|
||||||
$blacklist=array('files');//we dont want to show configuration for these
|
$blacklist=array('files');//we dont want to show configuration for these
|
||||||
|
|
||||||
foreach($registeredApps as $app){
|
foreach($registeredApps as $app) {
|
||||||
if(array_search($app,$blacklist)===false){
|
if(array_search($app, $blacklist)===false) {
|
||||||
$info=OC_App::getAppInfo($app);
|
$info=OC_App::getAppInfo($app);
|
||||||
if (!isset($info['name'])) {
|
if (!isset($info['name'])) {
|
||||||
OC_Log::write('core','App id "'.$app.'" has no name in appinfo',OC_Log::ERROR);
|
OC_Log::write('core', 'App id "'.$app.'" has no name in appinfo', OC_Log::ERROR);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$active=(OC_Appconfig::getValue($app,'enabled','no')=='yes')?true:false;
|
$active=(OC_Appconfig::getValue($app,'enabled','no')=='yes')?true:false;
|
||||||
|
@ -58,7 +58,7 @@ foreach($registeredApps as $app){
|
||||||
}
|
}
|
||||||
|
|
||||||
function app_sort($a, $b){
|
function app_sort($a, $b){
|
||||||
if ($a['active'] != $b['active']){
|
if ($a['active'] != $b['active']) {
|
||||||
return $b['active'] - $a['active'];
|
return $b['active'] - $a['active'];
|
||||||
}
|
}
|
||||||
return strcmp($a['name'], $b['name']);
|
return strcmp($a['name'], $b['name']);
|
||||||
|
@ -66,8 +66,8 @@ function app_sort($a, $b){
|
||||||
usort($apps, 'app_sort');
|
usort($apps, 'app_sort');
|
||||||
|
|
||||||
$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']):'');
|
||||||
$tmpl->assign('appid',$appid);
|
$tmpl->assign('appid', $appid);
|
||||||
|
|
||||||
$tmpl->printPage();
|
$tmpl->printPage();
|
||||||
|
|
Loading…
Reference in New Issue