Update settings/apps.php
respect coding style
This commit is contained in:
parent
c25f53c3f9
commit
cfd62d422b
1 changed files with 7 additions and 7 deletions
|
@ -21,7 +21,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
require_once('../lib/base.php');
|
||||
require_once '../lib/base.php';
|
||||
OC_Util::checkAdminUser();
|
||||
|
||||
// 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
|
||||
$blacklist=array('files');//we dont want to show configuration for these
|
||||
|
||||
foreach($registeredApps as $app){
|
||||
if(array_search($app,$blacklist)===false){
|
||||
foreach($registeredApps as $app) {
|
||||
if(array_search($app, $blacklist)===false) {
|
||||
$info=OC_App::getAppInfo($app);
|
||||
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;
|
||||
}
|
||||
$active=(OC_Appconfig::getValue($app,'enabled','no')=='yes')?true:false;
|
||||
|
@ -58,7 +58,7 @@ foreach($registeredApps as $app){
|
|||
}
|
||||
|
||||
function app_sort($a, $b){
|
||||
if ($a['active'] != $b['active']){
|
||||
if ($a['active'] != $b['active']) {
|
||||
return $b['active'] - $a['active'];
|
||||
}
|
||||
return strcmp($a['name'], $b['name']);
|
||||
|
@ -66,8 +66,8 @@ function app_sort($a, $b){
|
|||
usort($apps, 'app_sort');
|
||||
|
||||
$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']):'');
|
||||
$tmpl->assign('appid',$appid);
|
||||
$tmpl->assign('appid', $appid);
|
||||
|
||||
$tmpl->printPage();
|
||||
|
|
Loading…
Reference in a new issue