diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2012-09-04 13:14:09 +0400 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2012-09-04 13:14:09 +0400 |
commit | cfd62d422b4b0cc0c27680d1c9b247bd63eac516 (patch) | |
tree | 5c5bad0c6eb87ec82b4e2b44d3e36477c6d3fd4b /settings/apps.php | |
parent | c25f53c3f9b1c8a276b5644c03b90c28c7d1fdf2 (diff) |
Update settings/apps.php
respect coding style
Diffstat (limited to 'settings/apps.php')
-rw-r--r-- | settings/apps.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/settings/apps.php b/settings/apps.php index 7e21973805f..3524f65d6ac 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(); |