diff --git a/settings/apps.php b/settings/apps.php index 7e21973805..3524f65d6a 100644 --- a/settings/apps.php +++ b/settings/apps.php @@ -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();