Minor - format code

pull/2487/head
jmontoyaa 9 years ago
parent 1437a3f7e4
commit 656b2cad31
  1. 7
      main/admin/course_request_accepted.php
  2. 6
      main/inc/lib/display.lib.php

@ -39,12 +39,10 @@ if ($course_validation_feature) {
$message = sprintf(get_lang('CourseRequestDeletionFailed'), $course_request_code); $message = sprintf(get_lang('CourseRequestDeletionFailed'), $course_request_code);
$is_error_message = true; $is_error_message = true;
} }
} } elseif (isset($_POST['action'])) {
/** /**
* Form actions: delete. * Form actions: delete.
*/ */
elseif (isset($_POST['action'])) {
switch ($_POST['action']) { switch ($_POST['action']) {
// Delete selected courses // Delete selected courses
case 'delete_course_requests': case 'delete_course_requests':
@ -69,7 +67,8 @@ if ($course_validation_feature) {
/** /**
* Get the number of courses which will be displayed. * Get the number of courses which will be displayed.
*/ */
function get_number_of_requests() { function get_number_of_requests()
{
return CourseRequestManager::count_course_requests(COURSE_REQUEST_ACCEPTED); return CourseRequestManager::count_course_requests(COURSE_REQUEST_ACCEPTED);
} }

@ -389,16 +389,14 @@ class Display
* each item in this array can contain 3 values * each item in this array can contain 3 values
* - 1st element: the column title * - 1st element: the column title
* - 2nd element: true or false (column sortable?) * - 2nd element: true or false (column sortable?)
* - 3th element: additional attributes for * - 3th element: additional attributes for th-tag (eg for column-width)
* th-tag (eg for column-width)
* - 4the element: additional attributes for the td-tags * - 4the element: additional attributes for the td-tags
* @param array $content 2D-array with the tables content * @param array $content 2D-array with the tables content
* @param array $sorting_options Keys are: * @param array $sorting_options Keys are:
* 'column' = The column to use as sort-key * 'column' = The column to use as sort-key
* 'direction' = SORT_ASC or SORT_DESC * 'direction' = SORT_ASC or SORT_DESC
* @param array $paging_options Keys are: * @param array $paging_options Keys are:
* 'per_page_default' = items per page when switching from * 'per_page_default' = items per page when switching from full list to per-page-view
* full- list to per-page-view
* 'per_page' = number of items to show per page * 'per_page' = number of items to show per page
* 'page_nr' = The page to display * 'page_nr' = The page to display
* @param array $query_vars Additional variables to add in the query-string * @param array $query_vars Additional variables to add in the query-string

Loading…
Cancel
Save