@@ -37,7 +37,7 @@ |
||
37 | 37 | $_SESSION['sepe_message_info'] = $plugin->get_lang('SaveChange'); |
38 | 38 | } |
39 | 39 | } else { |
40 | - //Checker exists centers |
|
40 | + //Checker exists centers |
|
41 | 41 | $sql = "SELECT * FROM $tableCenters |
42 | 42 | WHERE center_origin='".$centerOrigin."' AND center_code='".$centerCode."'"; |
43 | 43 | $rs_tmp = Database::query($sql); |
@@ -214,10 +214,10 @@ discard block |
||
214 | 214 | return true; |
215 | 215 | } |
216 | 216 | |
217 | - /** |
|
218 | - * Gets the password for a specific meeting for the current user |
|
219 | - * @return string A moderator password if user is teacher, or the course code otherwise |
|
220 | - */ |
|
217 | + /** |
|
218 | + * Gets the password for a specific meeting for the current user |
|
219 | + * @return string A moderator password if user is teacher, or the course code otherwise |
|
220 | + */ |
|
221 | 221 | public function getMeetingUserPassword() |
222 | 222 | { |
223 | 223 | if ($this->isTeacher()) { |
@@ -473,7 +473,7 @@ discard block |
||
473 | 473 | // |
474 | 474 | // } |
475 | 475 | // |
476 | - //$item['created_at'] = api_convert_and_format_date($meetingDb['created_at']); |
|
476 | + //$item['created_at'] = api_convert_and_format_date($meetingDb['created_at']); |
|
477 | 477 | // //created_at |
478 | 478 | // |
479 | 479 | // $item['publish_url'] = api_get_self().'?action=publish&id='.$meetingDb['id']; |
@@ -655,7 +655,6 @@ discard block |
||
655 | 655 | * Also, this function provides conversion between path types, in this case the input path points inside the Chamilo area too. |
656 | 656 | * |
657 | 657 | * See $_configuration['course_folder'] in the configuration.php to alter the WEB_COURSE_PATH and SYS_COURSE_PATH parameters. |
658 | - |
|
659 | 658 | * @param string $path (optional) A path which type is to be converted. Also, it may be a defined constant for a path. |
660 | 659 | * This parameter has meaning when $type parameter has one of the following values: TO_WEB, TO_SYS, TO_REL. Otherwise it is ignored. |
661 | 660 | * @return string The requested path or the converted path. |
@@ -1838,7 +1837,6 @@ discard block |
||
1838 | 1837 | |
1839 | 1838 | /** |
1840 | 1839 | * Returns the current course info array. |
1841 | - |
|
1842 | 1840 | * Now if the course_code is given, the returned array gives info about that |
1843 | 1841 | * particular course, not specially the current one. |
1844 | 1842 | * @param int $id Numeric ID of the course |
@@ -4223,7 +4221,7 @@ discard block |
||
4223 | 4221 | $countryCode = languageToCountryIsoCode($currentLanguageInfo['isocode']); |
4224 | 4222 | $url = api_get_self(); |
4225 | 4223 | if ($showAsButton) { |
4226 | - $html = '<div class="btn-group"> |
|
4224 | + $html = '<div class="btn-group"> |
|
4227 | 4225 | <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> |
4228 | 4226 | <span class="flag-icon flag-icon-'.$countryCode.'"></span> |
4229 | 4227 | '.$currentLanguageInfo['original_name'].' |
@@ -6498,7 +6496,7 @@ discard block |
||
6498 | 6496 | function api_get_jquery_ui_js($include_jqgrid = false) { |
6499 | 6497 | $libraries = array(); |
6500 | 6498 | if ($include_jqgrid) { |
6501 | - $libraries[] = 'jqgrid'; |
|
6499 | + $libraries[] = 'jqgrid'; |
|
6502 | 6500 | } |
6503 | 6501 | return api_get_jquery_libraries_js($libraries); |
6504 | 6502 | } |
@@ -20,8 +20,8 @@ |
||
20 | 20 | $i = 1; |
21 | 21 | echo '<div class="actions" style="margin-bottom:30px">'; |
22 | 22 | echo '<a href="index.php?'.api_get_cidreq().'">'. |
23 | - Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('ToolCourseDescription'), '', ICON_SIZE_MEDIUM). |
|
24 | - '</a>'; |
|
23 | + Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('ToolCourseDescription'), '', ICON_SIZE_MEDIUM). |
|
24 | + '</a>'; |
|
25 | 25 | ksort($categories); |
26 | 26 | foreach ($categories as $id => $title) { |
27 | 27 | if ($i == ADD_BLOCK) { |
@@ -1635,7 +1635,7 @@ |
||
1635 | 1635 | array(), |
1636 | 1636 | ICON_SIZE_SMALL |
1637 | 1637 | ); |
1638 | - $item['has_certificates'] = '1'; |
|
1638 | + $item['has_certificates'] = '1'; |
|
1639 | 1639 | } else { |
1640 | 1640 | $item['certificates'] = Display::return_icon( |
1641 | 1641 | 'warning.png', |
@@ -426,8 +426,8 @@ |
||
426 | 426 | if ($status) { |
427 | 427 | echo Display::return_message(get_lang('NewLogoUpdated')); |
428 | 428 | echo '<script>' |
429 | - . '$("#header-logo").attr("src","'.$url.$newLogoFileName.'");' |
|
430 | - . '</script>'; |
|
429 | + . '$("#header-logo").attr("src","'.$url.$newLogoFileName.'");' |
|
430 | + . '</script>'; |
|
431 | 431 | } else { |
432 | 432 | echo Display::return_message('Error - '.get_lang('UplNoFileUploaded'), 'error'); |
433 | 433 | } |
@@ -135,7 +135,7 @@ |
||
135 | 135 | } else { |
136 | 136 | if ($userResult[$userId]['result_not_mandatory_80'] < 80 && $result) { |
137 | 137 | $userResult[$userId]['result_not_mandatory_80'] += 10; |
138 | - // var_dump($userResult[$userId]['result_80'] ); |
|
138 | + // var_dump($userResult[$userId]['result_80'] ); |
|
139 | 139 | } |
140 | 140 | } |
141 | 141 | } |
@@ -302,7 +302,7 @@ |
||
302 | 302 | } |
303 | 303 | } |
304 | 304 | |
305 | - // @todo improve calls of course info |
|
305 | + // @todo improve calls of course info |
|
306 | 306 | $subscribedCourses = !empty($courseAndSessions['courses']) ? $courseAndSessions['courses'] : []; |
307 | 307 | $mainCategoryList = []; |
308 | 308 | foreach ($subscribedCourses as $courseInfo) { |
@@ -1201,7 +1201,7 @@ discard block |
||
1201 | 1201 | } elseif ($mode == 'embedded') { |
1202 | 1202 | $_SESSION['oLP']->mode = 'embedded'; |
1203 | 1203 | } elseif ($mode == 'embedframe') { |
1204 | - $_SESSION['oLP']->mode = 'embedframe'; |
|
1204 | + $_SESSION['oLP']->mode = 'embedframe'; |
|
1205 | 1205 | } elseif ($mode == 'impress') { |
1206 | 1206 | $_SESSION['oLP']->mode = 'impress'; |
1207 | 1207 | } |
@@ -1241,10 +1241,10 @@ discard block |
||
1241 | 1241 | require 'lp_list.php'; |
1242 | 1242 | break; |
1243 | 1243 | */ |
1244 | - case 'switch_attempt_mode': |
|
1245 | - if (!$lp_found) { error_log('New LP - No learnpath given for switch', 0); require 'lp_list.php'; } |
|
1244 | + case 'switch_attempt_mode': |
|
1245 | + if (!$lp_found) { error_log('New LP - No learnpath given for switch', 0); require 'lp_list.php'; } |
|
1246 | 1246 | Session::write('refresh', 1); |
1247 | - $_SESSION['oLP']->switch_attempt_mode(); |
|
1247 | + $_SESSION['oLP']->switch_attempt_mode(); |
|
1248 | 1248 | require 'lp_list.php'; |
1249 | 1249 | break; |
1250 | 1250 | case 'switch_scorm_debug': |