@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | $dir = str_replace('\\', '/', $dir); |
38 | 38 | |
39 | 39 | /* Constants & Variables */ |
40 | -$current_session_id=api_get_session_id(); |
|
40 | +$current_session_id = api_get_session_id(); |
|
41 | 41 | $group_id = api_get_group_id(); |
42 | 42 | |
43 | 43 | //path for svg-edit save |
@@ -50,8 +50,8 @@ discard block |
||
50 | 50 | $file = basename($get_file); |
51 | 51 | $temp_file = explode(".", $file); |
52 | 52 | $filename = $temp_file[0]; |
53 | -$nameTools = get_lang('EditDocument') . ': ' . $filename; |
|
54 | -$courseDir = $_course['path'] . '/document'; |
|
53 | +$nameTools = get_lang('EditDocument').': '.$filename; |
|
54 | +$courseDir = $_course['path'].'/document'; |
|
55 | 55 | $is_allowed_to_edit = api_is_allowed_to_edit(null, true); |
56 | 56 | |
57 | 57 | /* Other initialization code */ |
@@ -125,15 +125,15 @@ discard block |
||
125 | 125 | Display :: display_header($nameTools, 'Doc'); |
126 | 126 | echo '<div class="actions">'; |
127 | 127 | echo '<a href="document.php?id='.$parent_id.'">'. |
128 | - Display::return_icon('back.png',get_lang('BackTo').' '.get_lang('DocumentsOverview'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
128 | + Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('DocumentsOverview'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
129 | 129 | echo '<a href="edit_document.php?'.api_get_cidreq().'&id='.$document_id.'&origin=editdraw">'. |
130 | - Display::return_icon('edit.png',get_lang('Rename').'/'.get_lang('Comments'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
130 | + Display::return_icon('edit.png', get_lang('Rename').'/'.get_lang('Comments'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
131 | 131 | echo '</div>'; |
132 | 132 | |
133 | 133 | if (api_browser_support('svg')) { |
134 | 134 | //automatic loading the course language |
135 | 135 | $svgedit_code_translation_table = array('' => 'en', 'pt' => 'pt-Pt', 'sr' => 'sr_latn'); |
136 | - $langsvgedit = api_get_language_isocode(); |
|
136 | + $langsvgedit = api_get_language_isocode(); |
|
137 | 137 | $langsvgedit = isset($svgedit_code_translation_table[$langsvgedit]) ? $svgedit_code_translation_table[$langsvgedit] : $langsvgedit; |
138 | 138 | $langsvgedit = file_exists(api_get_path(LIBRARY_PATH).'javascript/svgedit/locale/lang.'.$langsvgedit.'.js') ? $langsvgedit : 'en'; |
139 | 139 | $svg_url = api_get_path(WEB_LIBRARY_PATH).'javascript/svgedit/svg-editor.php?url=../../../../../courses/'.$courseDir.$dir.$file.'&lang='.$langsvgedit; |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | { |
16 | 16 | const STATUS_OK = 1; |
17 | 17 | const STATUS_WARNING = 2; |
18 | - const STATUS_ERROR = 3; |
|
18 | + const STATUS_ERROR = 3; |
|
19 | 19 | const STATUS_INFORMATION = 4; |
20 | 20 | |
21 | 21 | /** |
@@ -42,12 +42,12 @@ discard block |
||
42 | 42 | $html .= '<li>'; |
43 | 43 | } |
44 | 44 | $params['section'] = $section; |
45 | - $html .='<a href="system_status.php?section='.$section.'">'.get_lang($section).'</a></li>'; |
|
45 | + $html .= '<a href="system_status.php?section='.$section.'">'.get_lang($section).'</a></li>'; |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | $html .= '</ul><div class="tab-pane">'; |
49 | 49 | |
50 | - $data = call_user_func(array($this, 'get_' . $currentSection . '_data')); |
|
50 | + $data = call_user_func(array($this, 'get_'.$currentSection.'_data')); |
|
51 | 51 | echo $html; |
52 | 52 | |
53 | 53 | if ($currentSection != 'paths') { |
@@ -114,11 +114,11 @@ discard block |
||
114 | 114 | { |
115 | 115 | $array = array(); |
116 | 116 | $writable_folders = array( |
117 | - api_get_path(SYS_APP_PATH) .'cache', |
|
117 | + api_get_path(SYS_APP_PATH).'cache', |
|
118 | 118 | api_get_path(SYS_COURSE_PATH), |
119 | - api_get_path(SYS_APP_PATH) .'home', |
|
120 | - api_get_path(SYS_APP_PATH) .'upload/users/', |
|
121 | - api_get_path(SYS_PATH) .'main/default_course_document/images/', |
|
119 | + api_get_path(SYS_APP_PATH).'home', |
|
120 | + api_get_path(SYS_APP_PATH).'upload/users/', |
|
121 | + api_get_path(SYS_PATH).'main/default_course_document/images/', |
|
122 | 122 | ); |
123 | 123 | foreach ($writable_folders as $index => $folder) { |
124 | 124 | $writable = is_writable($folder); |
@@ -137,10 +137,10 @@ discard block |
||
137 | 137 | |
138 | 138 | $exists = file_exists(api_get_path(SYS_CODE_PATH).'install'); |
139 | 139 | $status = $exists ? self :: STATUS_WARNING : self :: STATUS_OK; |
140 | - $array[] = $this->build_setting($status, '[FILES]', get_lang('DirectoryExists') . ': /install', 'http://be2.php.net/file_exists', $exists, 0, 'yes_no', get_lang('DirectoryShouldBeRemoved')); |
|
140 | + $array[] = $this->build_setting($status, '[FILES]', get_lang('DirectoryExists').': /install', 'http://be2.php.net/file_exists', $exists, 0, 'yes_no', get_lang('DirectoryShouldBeRemoved')); |
|
141 | 141 | |
142 | 142 | $app_version = api_get_setting('chamilo_database_version'); |
143 | - $array[] = $this->build_setting(self :: STATUS_INFORMATION, '[DB]', 'chamilo_database_version', '#', $app_version, 0, null, 'Chamilo DB version'); |
|
143 | + $array[] = $this->build_setting(self :: STATUS_INFORMATION, '[DB]', 'chamilo_database_version', '#', $app_version, 0, null, 'Chamilo DB version'); |
|
144 | 144 | |
145 | 145 | $access_url_id = api_get_current_access_url_id(); |
146 | 146 | |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | $message2 .= get_lang('SpaceUsedOnSystemCannotBeMeasuredOnWindows'); |
153 | 153 | } else { |
154 | 154 | $dir = api_get_path(SYS_PATH); |
155 | - $du = exec('du -sh ' . $dir, $err); |
|
155 | + $du = exec('du -sh '.$dir, $err); |
|
156 | 156 | list($size, $none) = explode("\t", $du); |
157 | 157 | $limit = $_configuration[$access_url_id]['hosting_limit_disk_space']; |
158 | 158 | $message2 .= sprintf(get_lang('TotalSpaceUsedByPortalXLimitIsYMB'), $size, $limit); |
@@ -236,33 +236,33 @@ discard block |
||
236 | 236 | $array[] = $this->build_setting($status, '[INI]', 'default_charset', 'http://www.php.net/manual/en/ini.core.php#ini.default-charset', $setting, $req_setting, null, get_lang('DefaultCharsetInfo')); |
237 | 237 | |
238 | 238 | $setting = ini_get('max_execution_time'); |
239 | - $req_setting = '300 (' . get_lang('Minimum') . ')'; |
|
239 | + $req_setting = '300 ('.get_lang('Minimum').')'; |
|
240 | 240 | $status = $setting >= 300 ? self :: STATUS_OK : self :: STATUS_WARNING; |
241 | 241 | $array[] = $this->build_setting($status, '[INI]', 'max_execution_time', 'http://www.php.net/manual/en/ini.core.php#ini.max-execution-time', $setting, $req_setting, null, get_lang('MaxExecutionTimeInfo')); |
242 | 242 | |
243 | 243 | $setting = ini_get('max_input_time'); |
244 | - $req_setting = '300 (' . get_lang('Minimum') . ')'; |
|
244 | + $req_setting = '300 ('.get_lang('Minimum').')'; |
|
245 | 245 | $status = $setting >= 300 ? self :: STATUS_OK : self :: STATUS_WARNING; |
246 | 246 | $array[] = $this->build_setting($status, '[INI]', 'max_input_time', 'http://www.php.net/manual/en/ini.core.php#ini.max-input-time', $setting, $req_setting, null, get_lang('MaxInputTimeInfo')); |
247 | 247 | |
248 | 248 | $setting = ini_get('memory_limit'); |
249 | 249 | $req_setting = '>= '.REQUIRED_MIN_MEMORY_LIMIT.'M'; |
250 | 250 | $status = self :: STATUS_ERROR; |
251 | - if ((float)$setting >= REQUIRED_MIN_MEMORY_LIMIT) |
|
251 | + if ((float) $setting >= REQUIRED_MIN_MEMORY_LIMIT) |
|
252 | 252 | $status = self :: STATUS_OK; |
253 | 253 | $array[] = $this->build_setting($status, '[INI]', 'memory_limit', 'http://www.php.net/manual/en/ini.core.php#ini.memory-limit', $setting, $req_setting, null, get_lang('MemoryLimitInfo')); |
254 | 254 | |
255 | 255 | $setting = ini_get('post_max_size'); |
256 | 256 | $req_setting = '>= '.REQUIRED_MIN_POST_MAX_SIZE.'M'; |
257 | 257 | $status = self :: STATUS_ERROR; |
258 | - if ((float)$setting >= REQUIRED_MIN_POST_MAX_SIZE) |
|
258 | + if ((float) $setting >= REQUIRED_MIN_POST_MAX_SIZE) |
|
259 | 259 | $status = self :: STATUS_OK; |
260 | 260 | $array[] = $this->build_setting($status, '[INI]', 'post_max_size', 'http://www.php.net/manual/en/ini.core.php#ini.post-max-size', $setting, $req_setting, null, get_lang('PostMaxSizeInfo')); |
261 | 261 | |
262 | 262 | $setting = ini_get('upload_max_filesize'); |
263 | 263 | $req_setting = '>= '.REQUIRED_MIN_UPLOAD_MAX_FILESIZE.'M'; |
264 | 264 | $status = self :: STATUS_ERROR; |
265 | - if ((float)$setting >= REQUIRED_MIN_UPLOAD_MAX_FILESIZE) |
|
265 | + if ((float) $setting >= REQUIRED_MIN_UPLOAD_MAX_FILESIZE) |
|
266 | 266 | $status = self :: STATUS_OK; |
267 | 267 | $array[] = $this->build_setting($status, '[INI]', 'upload_max_filesize', 'http://www.php.net/manual/en/ini.core.php#ini.upload_max_filesize', $setting, $req_setting, null, get_lang('UploadMaxFilesizeInfo')); |
268 | 268 | |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | $status = $setting == $req_setting ? self :: STATUS_OK : self :: STATUS_WARNING; |
277 | 277 | $array[] = $this->build_setting($status, '[SESSION]', 'session.gc_maxlifetime', 'http://www.php.net/manual/en/ini.core.php#session.gc-maxlifetime', $setting, $req_setting, null, get_lang('SessionGCMaxLifetimeInfo')); |
278 | 278 | |
279 | - if (api_check_browscap()){$setting = true;}else{$setting=false;} |
|
279 | + if (api_check_browscap()) {$setting = true; } else {$setting = false; } |
|
280 | 280 | $req_setting = true; |
281 | 281 | $status = $setting == $req_setting ? self :: STATUS_OK : self :: STATUS_WARNING; |
282 | 282 | $array[] = $this->build_setting($status, '[INI]', 'browscap', 'http://www.php.net/manual/en/misc.configuration.php#ini.browscap', $setting, $req_setting, 'on_off', get_lang('BrowscapInfo')); |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | |
333 | 333 | $loaded = extension_loaded($extension); |
334 | 334 | $status = $loaded ? self :: STATUS_OK : self :: STATUS_ERROR; |
335 | - $array[] = $this->build_setting($status, '[EXTENSION]', get_lang('LoadedExtension') . ': ' . $extension, $url, $loaded, $expected_value, 'yes_no_optional', $comment); |
|
335 | + $array[] = $this->build_setting($status, '[EXTENSION]', get_lang('LoadedExtension').': '.$extension, $url, $loaded, $expected_value, 'yes_no_optional', $comment); |
|
336 | 336 | } |
337 | 337 | |
338 | 338 | return $array; |
@@ -455,9 +455,9 @@ discard block |
||
455 | 455 | $formatted_expected_value = $expected_value; |
456 | 456 | |
457 | 457 | if ($formatter) { |
458 | - if (method_exists($this, 'format_' . $formatter)) { |
|
459 | - $formatted_current_value = call_user_func(array($this, 'format_' . $formatter), $current_value); |
|
460 | - $formatted_expected_value = call_user_func(array($this, 'format_' . $formatter), $expected_value); |
|
458 | + if (method_exists($this, 'format_'.$formatter)) { |
|
459 | + $formatted_current_value = call_user_func(array($this, 'format_'.$formatter), $current_value); |
|
460 | + $formatted_expected_value = call_user_func(array($this, 'format_'.$formatter), $expected_value); |
|
461 | 461 | } |
462 | 462 | } |
463 | 463 | |
@@ -472,13 +472,13 @@ discard block |
||
472 | 472 | */ |
473 | 473 | public function get_link($title, $url) |
474 | 474 | { |
475 | - return '<a href="' . $url . '" target="about:bank">' . $title . '</a>'; |
|
475 | + return '<a href="'.$url.'" target="about:bank">'.$title.'</a>'; |
|
476 | 476 | } |
477 | 477 | |
478 | 478 | public function format_yes_no_optional($value) |
479 | 479 | { |
480 | 480 | $return = ''; |
481 | - switch($value) { |
|
481 | + switch ($value) { |
|
482 | 482 | case 0: |
483 | 483 | $return = get_lang('No'); |
484 | 484 | break; |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | </td> |
55 | 55 | |
56 | 56 | <?php |
57 | - if (!api_is_allowed_to_edit(null,true) && $feedbackType != EXERCISE_FEEDBACK_TYPE_EXAM) { ?> |
|
57 | + if (!api_is_allowed_to_edit(null, true) && $feedbackType != EXERCISE_FEEDBACK_TYPE_EXAM) { ?> |
|
58 | 58 | <td> |
59 | 59 | <?php |
60 | 60 | $comm = Event::get_comments($id, $questionId); |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $showTotalScoreAndUserChoices |
83 | 83 | ) { |
84 | 84 | if (empty($id)) { |
85 | - echo '<tr><td>'. Security::remove_XSS($answer).'</td></tr>'; |
|
85 | + echo '<tr><td>'.Security::remove_XSS($answer).'</td></tr>'; |
|
86 | 86 | } else { |
87 | 87 | ?> |
88 | 88 | <tr> |
@@ -93,10 +93,10 @@ discard block |
||
93 | 93 | </td> |
94 | 94 | |
95 | 95 | <?php |
96 | - if (!api_is_allowed_to_edit(null,true) && $feedback_type != EXERCISE_FEEDBACK_TYPE_EXAM) { ?> |
|
96 | + if (!api_is_allowed_to_edit(null, true) && $feedback_type != EXERCISE_FEEDBACK_TYPE_EXAM) { ?> |
|
97 | 97 | <td> |
98 | 98 | <?php |
99 | - $comm = Event::get_comments($id,$questionId); |
|
99 | + $comm = Event::get_comments($id, $questionId); |
|
100 | 100 | ?> |
101 | 101 | </td> |
102 | 102 | <?php } ?> |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | if (isset($fileUrl)) { |
152 | 152 | echo ' |
153 | 153 | <tr> |
154 | - <td><audio src="' . $fileUrl . '" controls></audio></td> |
|
154 | + <td><audio src="' . $fileUrl.'" controls></audio></td> |
|
155 | 155 | </tr> |
156 | 156 | '; |
157 | 157 | } |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | echo '</tr>'; |
163 | 163 | if ($feedback_type != EXERCISE_FEEDBACK_TYPE_EXAM) { |
164 | 164 | echo '<tr>'; |
165 | - echo Display::tag('td',get_lang('notCorrectedYet'), array('width'=>'45%')); |
|
165 | + echo Display::tag('td', get_lang('notCorrectedYet'), array('width'=>'45%')); |
|
166 | 166 | echo '</tr>'; |
167 | 167 | } else { |
168 | 168 | echo '<tr><td> </td></tr>'; |
@@ -175,9 +175,9 @@ discard block |
||
175 | 175 | } |
176 | 176 | echo '</td>'; |
177 | 177 | |
178 | - if (!api_is_allowed_to_edit(null,true) && $feedback_type != EXERCISE_FEEDBACK_TYPE_EXAM) { |
|
178 | + if (!api_is_allowed_to_edit(null, true) && $feedback_type != EXERCISE_FEEDBACK_TYPE_EXAM) { |
|
179 | 179 | echo '<td>'; |
180 | - $comm = Event::get_comments($id,$questionId); |
|
180 | + $comm = Event::get_comments($id, $questionId); |
|
181 | 181 | echo '</td>'; |
182 | 182 | } |
183 | 183 | echo '</tr>'; |
@@ -306,12 +306,12 @@ discard block |
||
306 | 306 | } |
307 | 307 | } |
308 | 308 | |
309 | - $icon = in_array($answerType, array(UNIQUE_ANSWER, UNIQUE_ANSWER_NO_OPTION)) ? 'radio':'checkbox'; |
|
310 | - $icon .= $studentChoice?'_on':'_off'; |
|
309 | + $icon = in_array($answerType, array(UNIQUE_ANSWER, UNIQUE_ANSWER_NO_OPTION)) ? 'radio' : 'checkbox'; |
|
310 | + $icon .= $studentChoice ? '_on' : '_off'; |
|
311 | 311 | $icon .= '.gif'; |
312 | 312 | |
313 | - $iconAnswer = in_array($answerType, array(UNIQUE_ANSWER, UNIQUE_ANSWER_NO_OPTION)) ? 'radio':'checkbox'; |
|
314 | - $iconAnswer .= $answerCorrect?'_on':'_off'; |
|
313 | + $iconAnswer = in_array($answerType, array(UNIQUE_ANSWER, UNIQUE_ANSWER_NO_OPTION)) ? 'radio' : 'checkbox'; |
|
314 | + $iconAnswer .= $answerCorrect ? '_on' : '_off'; |
|
315 | 315 | $iconAnswer .= '.gif'; |
316 | 316 | |
317 | 317 | ?> |
@@ -351,8 +351,8 @@ discard block |
||
351 | 351 | ?> |
352 | 352 | </td> |
353 | 353 | <?php |
354 | - if ($ans==1) { |
|
355 | - $comm = Event::get_comments($id,$questionId); |
|
354 | + if ($ans == 1) { |
|
355 | + $comm = Event::get_comments($id, $questionId); |
|
356 | 356 | } |
357 | 357 | ?> |
358 | 358 | <?php } else { ?> |
@@ -455,7 +455,7 @@ discard block |
||
455 | 455 | ?> |
456 | 456 | </td> |
457 | 457 | <?php |
458 | - if ($ans==1) { |
|
458 | + if ($ans == 1) { |
|
459 | 459 | $comm = Event::get_comments($id, $questionId); |
460 | 460 | } |
461 | 461 | ?> |
@@ -558,8 +558,8 @@ discard block |
||
558 | 558 | ?> |
559 | 559 | </td> |
560 | 560 | <?php |
561 | - if ($ans==1) { |
|
562 | - $comm = Event::get_comments($id,$questionId); |
|
561 | + if ($ans == 1) { |
|
562 | + $comm = Event::get_comments($id, $questionId); |
|
563 | 563 | } |
564 | 564 | ?> |
565 | 565 | <?php } else { ?> |
@@ -5,6 +5,6 @@ |
||
5 | 5 | * @author Imanol Losada Oriol <[email protected]> |
6 | 6 | * @package chamilo.plugin.skype |
7 | 7 | */ |
8 | -require_once __DIR__ . '/config.php'; |
|
8 | +require_once __DIR__.'/config.php'; |
|
9 | 9 | |
10 | 10 | Skype::create()->install(); |
@@ -5,6 +5,6 @@ |
||
5 | 5 | * @author Imanol Losada Oriol <[email protected]> |
6 | 6 | * @package chamilo.plugin.skype |
7 | 7 | */ |
8 | -require_once __DIR__ . '/config.php'; |
|
8 | +require_once __DIR__.'/config.php'; |
|
9 | 9 | |
10 | 10 | Skype::create()->install(); |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /* For license terms, see /license.txt */ |
3 | 3 | |
4 | -require_once dirname(__FILE__) . '/config.php'; |
|
4 | +require_once dirname(__FILE__).'/config.php'; |
|
5 | 5 | |
6 | 6 | if (!api_is_platform_admin()) { |
7 | 7 | die ('You must have admin permissions to install plugins'); |
@@ -7,7 +7,7 @@ |
||
7 | 7 | * @package chamilo.plugin.clockworksms |
8 | 8 | * @author Imanol Losada <[email protected]> |
9 | 9 | */ |
10 | -require_once __DIR__ . '/../../main/inc/global.inc.php'; |
|
10 | +require_once __DIR__.'/../../main/inc/global.inc.php'; |
|
11 | 11 | |
12 | 12 | require_once 'lib/clockworksms.lib.php'; |
13 | 13 | require_once 'vendor/clockworksms_api.php'; |
@@ -23,8 +23,8 @@ discard block |
||
23 | 23 | $errorMsg = ''; |
24 | 24 | |
25 | 25 | // Crop picture plugin for session images |
26 | -$htmlHeadXtra[] = '<link href="'. api_get_path(WEB_PATH) .'web/assets/cropper/dist/cropper.min.css" rel="stylesheet">'; |
|
27 | -$htmlHeadXtra[] = '<script src="'. api_get_path(WEB_PATH) .'web/assets/cropper/dist/cropper.min.js"></script>'; |
|
26 | +$htmlHeadXtra[] = '<link href="'.api_get_path(WEB_PATH).'web/assets/cropper/dist/cropper.min.css" rel="stylesheet">'; |
|
27 | +$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_PATH).'web/assets/cropper/dist/cropper.min.js"></script>'; |
|
28 | 28 | $htmlHeadXtra[] = '<script> |
29 | 29 | $(document).ready(function() { |
30 | 30 | var $image = $("#previewImage"); |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | ' LIMIT 10'; |
100 | 100 | |
101 | 101 | if (api_is_multiple_url_enabled()) { |
102 | - $tbl_user_rel_access_url= Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_USER); |
|
102 | + $tbl_user_rel_access_url = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_USER); |
|
103 | 103 | $access_url_id = api_get_current_access_url_id(); |
104 | 104 | if ($access_url_id != -1) { |
105 | 105 | $sql = 'SELECT username, lastname, firstname |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | $return .= '<a href="javascript: void(0);" onclick="javascript: fill_coach_field(\''.$user['username'].'\')">'.api_get_person_name($user['firstname'], $user['lastname']).' ('.$user['username'].')</a><br />'; |
125 | 125 | } |
126 | 126 | } |
127 | - $xajax_response -> addAssign('ajax_list_coachs','innerHTML', api_utf8_encode($return)); |
|
127 | + $xajax_response -> addAssign('ajax_list_coachs', 'innerHTML', api_utf8_encode($return)); |
|
128 | 128 | return $xajax_response; |
129 | 129 | } |
130 | 130 | $xajax -> processRequests(); |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | $form->addElement('header', $tool_name); |
186 | 186 | $result = SessionManager::setForm($form); |
187 | 187 | |
188 | -$htmlHeadXtra[] =' |
|
188 | +$htmlHeadXtra[] = ' |
|
189 | 189 | <script> |
190 | 190 | $(function() { |
191 | 191 | '.$result['js'].' |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | $form->addButtonNext(get_lang('NextStep')); |
211 | 211 | |
212 | 212 | if (!$formSent) { |
213 | - $formDefaults['access_start_date'] = $formDefaults['display_start_date'] = api_get_local_time(); |
|
213 | + $formDefaults['access_start_date'] = $formDefaults['display_start_date'] = api_get_local_time(); |
|
214 | 214 | $formDefaults['coach_username'] = api_get_user_id(); |
215 | 215 | } else { |
216 | 216 | $formDefaults['name'] = api_htmlentities($name, ENT_QUOTES, $charset); |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | $id_visibility = $params['session_visibility']; |
236 | 236 | $duration = isset($params['duration']) ? $params['duration'] : null; |
237 | 237 | $description = $params['description']; |
238 | - $showDescription = isset($params['show_description']) ? 1: 0; |
|
238 | + $showDescription = isset($params['show_description']) ? 1 : 0; |
|
239 | 239 | $sendSubscriptionNotification = isset($params['send_subscription_notification']); |
240 | 240 | $isThisImageCropped = isset($params['cropResult']); |
241 | 241 | |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | |
273 | 273 | if ($return == strval(intval($return))) { |
274 | 274 | // integer => no error on session creation |
275 | - header('Location: add_courses_to_session.php?id_session=' . $return . '&add=true&msg='); |
|
275 | + header('Location: add_courses_to_session.php?id_session='.$return.'&add=true&msg='); |
|
276 | 276 | exit(); |
277 | 277 | } |
278 | 278 | } |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | |
286 | 286 | echo '<div class="actions">'; |
287 | 287 | echo '<a href="../session/session_list.php">'. |
288 | - Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('PlatformAdmin'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
288 | + Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('PlatformAdmin'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
289 | 289 | echo '</div>'; |
290 | 290 | |
291 | 291 | $form->display(); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | $message = ''; |
29 | 29 | $content = ''; |
30 | 30 | |
31 | -$currentUrl = api_get_self() . "?name=$pluginName"; |
|
31 | +$currentUrl = api_get_self()."?name=$pluginName"; |
|
32 | 32 | |
33 | 33 | if (isset($pluginInfo['settings_form'])) { |
34 | 34 | /** @var FormValidator $form */ |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | foreach ($values as $key => $value) { |
70 | 70 | api_add_setting( |
71 | 71 | $value, |
72 | - Database::escape_string($pluginName . '_' . $key), |
|
72 | + Database::escape_string($pluginName.'_'.$key), |
|
73 | 73 | $pluginName, |
74 | 74 | 'setting', |
75 | 75 | 'Plugins', |
@@ -99,11 +99,11 @@ discard block |
||
99 | 99 | } |
100 | 100 | |
101 | 101 | $interbreadcrumb[] = array( |
102 | - 'url' => api_get_path(WEB_CODE_PATH) . 'admin/index.php', |
|
102 | + 'url' => api_get_path(WEB_CODE_PATH).'admin/index.php', |
|
103 | 103 | 'name' => get_lang('PlatformAdmin') |
104 | 104 | ); |
105 | 105 | $interbreadcrumb[] = array( |
106 | - 'url' => api_get_path(WEB_CODE_PATH) . 'admin/settings.php?category=Plugins', |
|
106 | + 'url' => api_get_path(WEB_CODE_PATH).'admin/settings.php?category=Plugins', |
|
107 | 107 | 'name' => get_lang('Plugins') |
108 | 108 | ); |
109 | 109 |