From a0186b98a76a7cc2377d4da1975933dfa7780e9f Mon Sep 17 00:00:00 2001 From: Julio Date: Fri, 13 May 2016 13:48:18 +0200 Subject: [PATCH] Minor - format code --- main/admin/statistics/index.php | 26 +++++++++++++------------- main/admin/user_import.php | 2 +- main/admin/user_information.php | 1 - main/admin/usergroups.php | 16 +++++++++++++--- 4 files changed, 27 insertions(+), 18 deletions(-) diff --git a/main/admin/statistics/index.php b/main/admin/statistics/index.php index 67f27325b9..ac82927a1c 100755 --- a/main/admin/statistics/index.php +++ b/main/admin/statistics/index.php @@ -16,19 +16,19 @@ $report = isset($_REQUEST['report']) ? $_REQUEST['report'] : ''; if ($report) { $htmlHeadXtra[] = api_get_js('chartjs/Chart.min.js'); - $htmlHeadXtra[] = '' - . ''; + $htmlHeadXtra[] = ' + '; } $tool_name = get_lang('Statistics'); diff --git a/main/admin/user_import.php b/main/admin/user_import.php index 1e8e6ec23c..06ee0ce8a3 100644 --- a/main/admin/user_import.php +++ b/main/admin/user_import.php @@ -6,7 +6,7 @@ */ $cidReset = true; -require '../inc/global.inc.php'; +require_once '../inc/global.inc.php'; // Set this option to true to enforce strict purification for usenames. $purification_option_for_usernames = false; diff --git a/main/admin/user_information.php b/main/admin/user_information.php index 2a8798bffe..f9e4d073e4 100755 --- a/main/admin/user_information.php +++ b/main/admin/user_information.php @@ -381,7 +381,6 @@ if (api_is_multiple_url_enabled()) { } } - $studentBossList = UserManager::getStudentBossList($userId); $studentBossListToString = ''; if ($studentBossList) { diff --git a/main/admin/usergroups.php b/main/admin/usergroups.php index 3891882d84..8ed2912dd3 100755 --- a/main/admin/usergroups.php +++ b/main/admin/usergroups.php @@ -76,8 +76,8 @@ $action_links = 'function action_formatter (cellvalue, options, rowObject) { .' ' . Display::return_icon('user_to_class.png', get_lang('SubscribeUsersToClass'), null, ICON_SIZE_SMALL) . '' .' ' . Display::return_icon('course_to_class.png', get_lang('SubscribeClassToCourses'), null, ICON_SIZE_SMALL) . '' .' ' . Display::return_icon('sessions_to_class.png', get_lang('SubscribeClassToSessions'), null, ICON_SIZE_SMALL) . '' - .' ' . Display::return_icon('edit.png', get_lang('Edit'), null, ICON_SIZE_TINY) . '' - .' ' . Display::return_icon('delete.png', get_lang('Delete'), null, ICON_SIZE_TINY) . '\'; + .' ' . Display::return_icon('edit.png', get_lang('Edit'), null, ICON_SIZE_SMALL) . '' + .' ' . Display::return_icon('delete.png', get_lang('Delete'), null, ICON_SIZE_SMALL) . '\'; }'; ?> @@ -85,11 +85,21 @@ $action_links = 'function action_formatter (cellvalue, options, rowObject) { $(function() { display() function - echo Display::grid_js('usergroups', $url, $columns, $column_model, $extra_params, array(), $action_links, true); + echo Display::grid_js( + 'usergroups', + $url, + $columns, + $column_model, + $extra_params, + array(), + $action_links, + true + ); ?> });