@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | $list = CourseHome::get_tools_category(TOOL_INTERACTION); |
| 168 | 168 | $list2 = CourseHome::get_tools_category(TOOL_COURSE_PLUGIN); |
| 169 | 169 | $list = array_merge($list, $list2); |
| 170 | - $result = CourseHome::show_tools_category($urlGenerator, $list); |
|
| 170 | + $result = CourseHome::show_tools_category($urlGenerator, $list); |
|
| 171 | 171 | $totalList = array_merge($totalList, $result['tool_list']); |
| 172 | 172 | |
| 173 | 173 | $content .= $this->return_block(get_lang('Interaction'), $result['content']); |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | $content .= $this->return_block(get_lang('Administration'), $result['content']); |
| 181 | 181 | |
| 182 | 182 | } elseif (api_is_coach()) { |
| 183 | - $content .= '<div class="row">'; |
|
| 183 | + $content .= '<div class="row">'; |
|
| 184 | 184 | $list = CourseHome::get_tools_category(TOOL_STUDENT_VIEW); |
| 185 | 185 | $result = CourseHome::show_tools_category($urlGenerator, $list); |
| 186 | 186 | $content .= $result['content']; |
@@ -252,13 +252,13 @@ discard block |
||
| 252 | 252 | $course_id = api_get_course_int_id(); |
| 253 | 253 | $condition = ''; |
| 254 | 254 | if (!empty($session_id)) { |
| 255 | - $condition = api_get_session_condition($session_id); |
|
| 255 | + $condition = api_get_session_condition($session_id); |
|
| 256 | 256 | $sql = "SELECT iid FROM $table |
| 257 | 257 | WHERE c_id = $course_id AND autolaunch = 1 $condition |
| 258 | 258 | LIMIT 1"; |
| 259 | 259 | $result = \Database::query($sql); |
| 260 | 260 | //If we found nothing in the session we just called the session_id = 0 autolaunch |
| 261 | - if (\Database::num_rows($result) == 0) { |
|
| 261 | + if (\Database::num_rows($result) == 0) { |
|
| 262 | 262 | $condition = ''; |
| 263 | 263 | } else { |
| 264 | 264 | //great, there is an specific auto lunch for this session we leave the $condition |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | WHERE c_id = $course_id AND autolaunch = 1 $condition |
| 270 | 270 | LIMIT 1"; |
| 271 | 271 | $result = \Database::query($sql); |
| 272 | - if (\Database::num_rows($result) > 0) { |
|
| 272 | + if (\Database::num_rows($result) > 0) { |
|
| 273 | 273 | $data = \Database::fetch_array($result, 'ASSOC'); |
| 274 | 274 | if (!empty($data['iid'])) { |
| 275 | 275 | if (api_is_platform_admin() || api_is_allowed_to_edit()) { |
@@ -314,11 +314,11 @@ discard block |
||
| 314 | 314 | $course_id = api_get_course_int_id(); |
| 315 | 315 | $condition = ''; |
| 316 | 316 | if (!empty($session_id)) { |
| 317 | - $condition = api_get_session_condition($session_id); |
|
| 317 | + $condition = api_get_session_condition($session_id); |
|
| 318 | 318 | $sql = "SELECT id FROM $lp_table WHERE c_id = $course_id AND autolunch = 1 $condition LIMIT 1"; |
| 319 | 319 | $result = \Database::query($sql); |
| 320 | 320 | //If we found nothing in the session we just called the session_id = 0 autolunch |
| 321 | - if (\Database::num_rows($result) == 0) { |
|
| 321 | + if (\Database::num_rows($result) == 0) { |
|
| 322 | 322 | $condition = ''; |
| 323 | 323 | } else { |
| 324 | 324 | //great, there is an specific auto lunch for this session we leave the $condition |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | WHERE c_id = $course_id AND autolunch = 1 $condition |
| 330 | 330 | LIMIT 1"; |
| 331 | 331 | $result = \Database::query($sql); |
| 332 | - if (\Database::num_rows($result) > 0) { |
|
| 332 | + if (\Database::num_rows($result) > 0) { |
|
| 333 | 333 | $lp_data = \Database::fetch_array($result, 'ASSOC'); |
| 334 | 334 | if (!empty($lp_data['id'])) { |
| 335 | 335 | if (api_is_platform_admin() || api_is_allowed_to_edit()) { |
@@ -642,7 +642,6 @@ discard block |
||
| 642 | 642 | * Also, this function provides conversion between path types, in this case the input path points inside the Chamilo area too. |
| 643 | 643 | * |
| 644 | 644 | * See $_configuration['course_folder'] in the configuration.php to alter the WEB_COURSE_PATH and SYS_COURSE_PATH parameters. |
| 645 | - |
|
| 646 | 645 | * @param string $path (optional) A path which type is to be converted. Also, it may be a defined constant for a path. |
| 647 | 646 | * This parameter has meaning when $type parameter has one of the following values: TO_WEB, TO_SYS, TO_REL. Otherwise it is ignored. |
| 648 | 647 | * @return string The requested path or the converted path. |
@@ -1742,7 +1741,6 @@ discard block |
||
| 1742 | 1741 | |
| 1743 | 1742 | /** |
| 1744 | 1743 | * Returns the current course info array. |
| 1745 | - |
|
| 1746 | 1744 | * Now if the course_code is given, the returned array gives info about that |
| 1747 | 1745 | * particular course, not specially the current one. |
| 1748 | 1746 | * @param int $id Numeric ID of the course |
@@ -4133,7 +4131,7 @@ discard block |
||
| 4133 | 4131 | ORDER BY original_name ASC"; |
| 4134 | 4132 | $result = Database::query($sql); |
| 4135 | 4133 | $language_list = array(); |
| 4136 | - while ($row = Database::fetch_array($result)) { |
|
| 4134 | + while ($row = Database::fetch_array($result)) { |
|
| 4137 | 4135 | $language_list[$row['isocode']] = $row['original_name']; |
| 4138 | 4136 | } |
| 4139 | 4137 | return $language_list; |
@@ -6283,7 +6281,7 @@ discard block |
||
| 6283 | 6281 | function api_get_jquery_ui_js($include_jqgrid = false) { |
| 6284 | 6282 | $libraries = array(); |
| 6285 | 6283 | if ($include_jqgrid) { |
| 6286 | - $libraries[]='jqgrid'; |
|
| 6284 | + $libraries[]='jqgrid'; |
|
| 6287 | 6285 | } |
| 6288 | 6286 | return api_get_jquery_libraries_js($libraries); |
| 6289 | 6287 | } |