Completed
Push — 1.10.x ( 8f997c...918380 )
by Yannick
259:37 queued 220:06
created
main/forum/editpost.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
 
143 143
 if (!api_is_allowed_to_edit(null, true) &&
144 144
     (
145
-        ($current_forum_category && $current_forum_category['locked'] <> 0 ) ||
145
+        ($current_forum_category && $current_forum_category['locked'] <> 0) ||
146 146
         $current_forum['locked'] <> 0 ||
147 147
         $current_thread['locked'] <> 0
148 148
     )
Please login to merge, or discard this patch.
main/forum/viewpost.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 // Are we in a lp ?
29 29
 $origin = '';
30 30
 if (isset($_GET['origin'])) {
31
-    $origin =  Security::remove_XSS($_GET['origin']);
31
+    $origin = Security::remove_XSS($_GET['origin']);
32 32
 }
33 33
 
34 34
 /* MAIN DISPLAY SECTION */
@@ -45,12 +45,12 @@  discard block
 block discarded – undo
45 45
 
46 46
 /* Header and Breadcrumbs */
47 47
 
48
-if (isset($_SESSION['gradebook'])){
48
+if (isset($_SESSION['gradebook'])) {
49 49
     $gradebook = $_SESSION['gradebook'];
50 50
 }
51 51
 
52 52
 if (!empty($gradebook) && $gradebook == 'view') {
53
-    $interbreadcrumb[] = array (
53
+    $interbreadcrumb[] = array(
54 54
         'url' => '../gradebook/'.$_SESSION['gradebook_dest'],
55 55
         'name' => get_lang('ToolGradebook')
56 56
     );
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
     echo "\t<tr>\n\t\t<th style=\"padding-left:5px;\" align=\"left\" colspan=\"6\">";
184 184
     echo '<span class="forum_title">'.prepare4display($current_thread['thread_title']).'</span><br />';
185 185
 
186
-    if ($origin!='learnpath') {
186
+    if ($origin != 'learnpath') {
187 187
         echo '<span class="forum_low_description">'.prepare4display($current_forum_category['cat_title']).' - ';
188 188
     }
189 189
 
Please login to merge, or discard this patch.
main/course_info/infocours.php 1 patch
Spacing   +65 added lines, -65 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
  */
16 16
 
17 17
 require_once '../inc/global.inc.php';
18
-$current_course_tool  = TOOL_COURSE_SETTING;
18
+$current_course_tool = TOOL_COURSE_SETTING;
19 19
 $this_section = SECTION_COURSES;
20 20
 
21 21
 $nameTools = get_lang('ModifInfo');
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
     api_not_allowed(true);
47 47
 }
48 48
 
49
-$htmlHeadXtra[] = '<link  href="'. api_get_path(WEB_PATH) .'web/assets/cropper/dist/cropper.min.css" rel="stylesheet">';
50
-$htmlHeadXtra[] = '<script src="'. api_get_path(WEB_PATH) .'web/assets/cropper/dist/cropper.min.js"></script>';
49
+$htmlHeadXtra[] = '<link  href="'.api_get_path(WEB_PATH).'web/assets/cropper/dist/cropper.min.css" rel="stylesheet">';
50
+$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_PATH).'web/assets/cropper/dist/cropper.min.js"></script>';
51 51
 $htmlHeadXtra[] = '<script>
52 52
 $(document).ready(function() {
53 53
     var $image = $("#previewImage");
@@ -150,18 +150,18 @@  discard block
 block discarded – undo
150 150
 $form = new FormValidator('update_course', 'post', api_get_self().'?'.api_get_cidreq());
151 151
 
152 152
 // COURSE SETTINGS
153
-$form->addElement('html', '<div><h3>'.Display::return_icon('settings.png', Security::remove_XSS(get_lang('CourseSettings')),'',ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('CourseSettings')).'</h3><div>');
153
+$form->addElement('html', '<div><h3>'.Display::return_icon('settings.png', Security::remove_XSS(get_lang('CourseSettings')), '', ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('CourseSettings')).'</h3><div>');
154 154
 
155 155
 $image_html = '';
156 156
 
157 157
 
158 158
 // Display course picture
159
-$course_path = api_get_path(SYS_COURSE_PATH).$currentCourseRepository;   // course path
159
+$course_path = api_get_path(SYS_COURSE_PATH).$currentCourseRepository; // course path
160 160
 
161 161
 if (file_exists($course_path.'/course-pic85x85.png')) {
162
-    $course_web_path = api_get_path(WEB_COURSE_PATH).$currentCourseRepository;   // course web path
162
+    $course_web_path = api_get_path(WEB_COURSE_PATH).$currentCourseRepository; // course web path
163 163
     $course_medium_image = $course_web_path.'/course-pic85x85.png?'.rand(1, 1000); // redimensioned image 85x85
164
-    $image_html =  '<div class="row"><label class="col-md-2 control-label">'.get_lang('Image').'</label> <div class="col-md-8"><img src="'.$course_medium_image.'" /></div></div>';
164
+    $image_html = '<div class="row"><label class="col-md-2 control-label">'.get_lang('Image').'</label> <div class="col-md-8"><img src="'.$course_medium_image.'" /></div></div>';
165 165
 }
166 166
 $form->addElement('html', $image_html);
167 167
 
@@ -201,17 +201,17 @@  discard block
 block discarded – undo
201 201
             . '</div>'
202 202
 . '');
203 203
 $form->addHidden('cropResult', '');
204
-$allowed_picture_types = array ('jpg', 'jpeg', 'png', 'gif');
204
+$allowed_picture_types = array('jpg', 'jpeg', 'png', 'gif');
205 205
 $form->addRule('picture', get_lang('OnlyImagesAllowed').' ('.implode(',', $allowed_picture_types).')', 'filetype', $allowed_picture_types);
206 206
 //$form->addElement('html', '<div class="form-group "><div class="col-md-2"></div> <div class="col-md-8 help-image">'.get_lang('UniqueAnswerImagePreferredSize200x150').'</div></div>');
207 207
 $form->addElement('checkbox', 'delete_picture', null, get_lang('DeletePicture'));
208 208
 
209 209
 if (api_get_setting('pdf_export_watermark_by_course') == 'true') {
210
-    $url =  PDF::get_watermark($course_code);
210
+    $url = PDF::get_watermark($course_code);
211 211
     $form->addText('pdf_export_watermark_text', get_lang('PDFExportWatermarkTextTitle'), false, array('size' => '60'));
212 212
     $form->addElement('file', 'pdf_export_watermark_path', get_lang('AddWaterMark'));
213 213
     if ($url != false) {
214
-        $delete_url = '<a href="?delete_watermark">'.Display::return_icon('delete.png',get_lang('DelImage')).'</a>';
214
+        $delete_url = '<a href="?delete_watermark">'.Display::return_icon('delete.png', get_lang('DelImage')).'</a>';
215 215
         $form->addElement('html', '<div class="row"><div class="formw"><a href="'.$url.'">'.$url.' '.$delete_url.'</a></div></div>');
216 216
     }
217 217
     $form->addRule('pdf_export_watermark_path', get_lang('OnlyImagesAllowed').' ('.implode(',', $allowed_picture_types).')', 'filetype', $allowed_picture_types);
@@ -229,21 +229,21 @@  discard block
 block discarded – undo
229 229
 }
230 230
 
231 231
 $form->addElement('label', get_lang('DocumentQuota'), format_file_size(DocumentManager::get_course_quota()));
232
-$form->addButtonSave(get_lang('SaveSettings'),'submit_save');
232
+$form->addButtonSave(get_lang('SaveSettings'), 'submit_save');
233 233
 $form->addElement('html', '</div></div>');
234 234
 
235 235
 // COURSE ACCESS
236 236
 
237
-$form->addElement('html', '<div> <h3>'.Display::return_icon('course.png', Security::remove_XSS(get_lang('CourseAccess')),'',ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('CourseAccess')).'</h3><div>');
237
+$form->addElement('html', '<div> <h3>'.Display::return_icon('course.png', Security::remove_XSS(get_lang('CourseAccess')), '', ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('CourseAccess')).'</h3><div>');
238 238
 
239 239
 $group = array();
240
-$group[]= $form->createElement('radio', 'visibility', get_lang("CourseAccess"), get_lang('OpenToTheWorld'), COURSE_VISIBILITY_OPEN_WORLD);
241
-$group[]= $form->createElement('radio', 'visibility', null, get_lang('OpenToThePlatform'), COURSE_VISIBILITY_OPEN_PLATFORM);
242
-$group[]= $form->createElement('radio', 'visibility', null, get_lang('Private'), COURSE_VISIBILITY_REGISTERED);
243
-$group[]= $form->createElement('radio', 'visibility', null, get_lang('CourseVisibilityClosed'), COURSE_VISIBILITY_CLOSED);
240
+$group[] = $form->createElement('radio', 'visibility', get_lang("CourseAccess"), get_lang('OpenToTheWorld'), COURSE_VISIBILITY_OPEN_WORLD);
241
+$group[] = $form->createElement('radio', 'visibility', null, get_lang('OpenToThePlatform'), COURSE_VISIBILITY_OPEN_PLATFORM);
242
+$group[] = $form->createElement('radio', 'visibility', null, get_lang('Private'), COURSE_VISIBILITY_REGISTERED);
243
+$group[] = $form->createElement('radio', 'visibility', null, get_lang('CourseVisibilityClosed'), COURSE_VISIBILITY_CLOSED);
244 244
 // The "hidden" visibility is only available to portal admins
245 245
 if (api_is_platform_admin()) {
246
-    $group[]= $form->createElement('radio', 'visibility', null, get_lang('CourseVisibilityHidden'), COURSE_VISIBILITY_HIDDEN);
246
+    $group[] = $form->createElement('radio', 'visibility', null, get_lang('CourseVisibilityHidden'), COURSE_VISIBILITY_HIDDEN);
247 247
 }
248 248
 $form->addGroup($group, '', array(get_lang("CourseAccess"), get_lang("CourseAccessConfigTip")), '');
249 249
 
@@ -252,13 +252,13 @@  discard block
 block discarded – undo
252 252
 $form->addElement('label', get_lang('DirectLink'), sprintf(get_lang('CourseSettingsRegisterDirectLink'), $url));
253 253
 
254 254
 $group = array();
255
-$group[]=$form->createElement('radio', 'subscribe', get_lang('Subscription'), get_lang('Allowed'), 1);
256
-$group[]=$form->createElement('radio', 'subscribe', null, get_lang('Denied'), 0);
255
+$group[] = $form->createElement('radio', 'subscribe', get_lang('Subscription'), get_lang('Allowed'), 1);
256
+$group[] = $form->createElement('radio', 'subscribe', null, get_lang('Denied'), 0);
257 257
 $form->addGroup($group, '', array(get_lang("Subscription")), '');
258 258
 
259 259
 $group = array();
260
-$group[]=$form->createElement('radio', 'unsubscribe', get_lang('Unsubscription'), get_lang('AllowedToUnsubscribe'), 1);
261
-$group[]=$form->createElement('radio', 'unsubscribe', null, get_lang('NotAllowedToUnsubscribe'), 0);
260
+$group[] = $form->createElement('radio', 'unsubscribe', get_lang('Unsubscription'), get_lang('AllowedToUnsubscribe'), 1);
261
+$group[] = $form->createElement('radio', 'unsubscribe', null, get_lang('NotAllowedToUnsubscribe'), 0);
262 262
 $form->addGroup($group, '', array(get_lang("Unsubscription")), '');
263 263
 
264 264
 $form->addText('course_registration_password', get_lang('CourseRegistrationPassword'), false, array('size' => '60'));
@@ -271,103 +271,103 @@  discard block
 block discarded – undo
271 271
 
272 272
 // Documents
273 273
 if (api_get_setting('documents_default_visibility_defined_in_course') == 'true') {
274
-    $form->addElement('html', '<div> <h3>'.Display::return_icon('folder.png', Security::remove_XSS(get_lang('Documents')),'',ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('Documents')).'</h3><div>');
274
+    $form->addElement('html', '<div> <h3>'.Display::return_icon('folder.png', Security::remove_XSS(get_lang('Documents')), '', ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('Documents')).'</h3><div>');
275 275
 
276 276
     $group = array(
277 277
         $form->createElement('radio', 'documents_default_visibility', null, get_lang('Visible'), 'visible'),
278 278
         $form->createElement('radio', 'documents_default_visibility', null, get_lang('Invisible'), 'invisible')
279 279
     );
280 280
     $form->addGroup($group, '', array(get_lang("DocumentsDefaultVisibility")), '');
281
-    $form->addButtonSave(get_lang('SaveSettings'),'submit_save');
281
+    $form->addButtonSave(get_lang('SaveSettings'), 'submit_save');
282 282
 
283 283
 
284 284
     $form->addElement('html', '</div></div>');
285 285
 }
286 286
 
287 287
 // EMAIL NOTIFICATIONS
288
-$form->addElement('html', '<div> <h3>'.Display::return_icon('mail.png', Security::remove_XSS(get_lang('EmailNotifications')),'',ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('EmailNotifications')).'</h3><div>');
288
+$form->addElement('html', '<div> <h3>'.Display::return_icon('mail.png', Security::remove_XSS(get_lang('EmailNotifications')), '', ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('EmailNotifications')).'</h3><div>');
289 289
 
290 290
 $group = array();
291
-$group[]=$form->createElement('radio', 'email_alert_to_teacher_on_new_user_in_course', get_lang('NewUserEmailAlert'), get_lang('NewUserEmailAlertEnable'), 1);
292
-$group[]=$form->createElement('radio', 'email_alert_to_teacher_on_new_user_in_course', null, get_lang('NewUserEmailAlertToTeacharAndTutor'), 2);
293
-$group[]=$form->createElement('radio', 'email_alert_to_teacher_on_new_user_in_course', null, get_lang('NewUserEmailAlertDisable'), 0);
291
+$group[] = $form->createElement('radio', 'email_alert_to_teacher_on_new_user_in_course', get_lang('NewUserEmailAlert'), get_lang('NewUserEmailAlertEnable'), 1);
292
+$group[] = $form->createElement('radio', 'email_alert_to_teacher_on_new_user_in_course', null, get_lang('NewUserEmailAlertToTeacharAndTutor'), 2);
293
+$group[] = $form->createElement('radio', 'email_alert_to_teacher_on_new_user_in_course', null, get_lang('NewUserEmailAlertDisable'), 0);
294 294
 $form->addGroup($group, '', array(get_lang("NewUserEmailAlert")), '');
295 295
 
296 296
 $group = array();
297
-$group[]=$form->createElement('radio', 'email_alert_students_on_new_homework', get_lang('NewHomeworkEmailAlert'), get_lang('NewHomeworkEmailAlertEnable'), 1);
298
-$group[]=$form->createElement('radio', 'email_alert_students_on_new_homework', null, get_lang('NewHomeworkEmailAlertDisable'), 0);
297
+$group[] = $form->createElement('radio', 'email_alert_students_on_new_homework', get_lang('NewHomeworkEmailAlert'), get_lang('NewHomeworkEmailAlertEnable'), 1);
298
+$group[] = $form->createElement('radio', 'email_alert_students_on_new_homework', null, get_lang('NewHomeworkEmailAlertDisable'), 0);
299 299
 $form->addGroup($group, '', array(get_lang("NewHomeworkEmailAlert")), '');
300 300
 
301 301
 $group = array();
302
-$group[]=$form->createElement('radio', 'email_alert_manager_on_new_doc', null, get_lang('WorkEmailAlertActivateOnlyForTeachers'), 3);
303
-$group[]=$form->createElement('radio', 'email_alert_manager_on_new_doc', null, get_lang('WorkEmailAlertActivateOnlyForStudents'), 2);
304
-$group[]=$form->createElement('radio', 'email_alert_manager_on_new_doc', get_lang('WorkEmailAlert'), get_lang('WorkEmailAlertActivate'), 1);
305
-$group[]=$form->createElement('radio', 'email_alert_manager_on_new_doc', null, get_lang('WorkEmailAlertDeactivate'), 0);
302
+$group[] = $form->createElement('radio', 'email_alert_manager_on_new_doc', null, get_lang('WorkEmailAlertActivateOnlyForTeachers'), 3);
303
+$group[] = $form->createElement('radio', 'email_alert_manager_on_new_doc', null, get_lang('WorkEmailAlertActivateOnlyForStudents'), 2);
304
+$group[] = $form->createElement('radio', 'email_alert_manager_on_new_doc', get_lang('WorkEmailAlert'), get_lang('WorkEmailAlertActivate'), 1);
305
+$group[] = $form->createElement('radio', 'email_alert_manager_on_new_doc', null, get_lang('WorkEmailAlertDeactivate'), 0);
306 306
 $form->addGroup($group, '', array(get_lang("WorkEmailAlert")), '');
307 307
 
308 308
 $group = array();
309
-$group[]=$form->createElement('radio', 'email_alert_on_new_doc_dropbox', get_lang('DropboxEmailAlert'), get_lang('DropboxEmailAlertActivate'), 1);
310
-$group[]=$form->createElement('radio', 'email_alert_on_new_doc_dropbox', null, get_lang('DropboxEmailAlertDeactivate'), 0);
309
+$group[] = $form->createElement('radio', 'email_alert_on_new_doc_dropbox', get_lang('DropboxEmailAlert'), get_lang('DropboxEmailAlertActivate'), 1);
310
+$group[] = $form->createElement('radio', 'email_alert_on_new_doc_dropbox', null, get_lang('DropboxEmailAlertDeactivate'), 0);
311 311
 $form->addGroup($group, '', array(get_lang("DropboxEmailAlert")), '');
312 312
 
313 313
 $group = array();
314
-$group[]=$form->createElement('radio', 'email_alert_manager_on_new_quiz', get_lang('QuizEmailAlert'), get_lang('QuizEmailAlertActivate'), 1);
315
-$group[]=$form->createElement('radio', 'email_alert_manager_on_new_quiz', null, get_lang('QuizEmailAlertDeactivate'), 0);
314
+$group[] = $form->createElement('radio', 'email_alert_manager_on_new_quiz', get_lang('QuizEmailAlert'), get_lang('QuizEmailAlertActivate'), 1);
315
+$group[] = $form->createElement('radio', 'email_alert_manager_on_new_quiz', null, get_lang('QuizEmailAlertDeactivate'), 0);
316 316
 $form->addGroup($group, '', array(get_lang("QuizEmailAlert")), '');
317 317
 $form->addButtonSave(get_lang('SaveSettings'), 'submit_save');
318 318
 
319 319
 $form->addElement('html', '</div></div>');
320 320
 
321 321
 // USER RIGHTS
322
-$form->addElement('html', '<div> <h3>'.Display::return_icon('user.png', Security::remove_XSS(get_lang('UserRights')),'',ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('UserRights')).'</h3><div>');
322
+$form->addElement('html', '<div> <h3>'.Display::return_icon('user.png', Security::remove_XSS(get_lang('UserRights')), '', ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('UserRights')).'</h3><div>');
323 323
 
324 324
 $group = array();
325
-$group[]=$form->createElement('radio', 'allow_user_edit_agenda', get_lang('AllowUserEditAgenda'), get_lang('AllowUserEditAgendaActivate'), 1);
326
-$group[]=$form->createElement('radio', 'allow_user_edit_agenda', null, get_lang('AllowUserEditAgendaDeactivate'), 0);
325
+$group[] = $form->createElement('radio', 'allow_user_edit_agenda', get_lang('AllowUserEditAgenda'), get_lang('AllowUserEditAgendaActivate'), 1);
326
+$group[] = $form->createElement('radio', 'allow_user_edit_agenda', null, get_lang('AllowUserEditAgendaDeactivate'), 0);
327 327
 $form->addGroup($group, '', array(get_lang("AllowUserEditAgenda")), '');
328 328
 
329 329
 $group = array();
330
-$group[]=$form->createElement('radio', 'allow_user_edit_announcement', get_lang('AllowUserEditAnnouncement'), get_lang('AllowUserEditAnnouncementActivate'), 1);
331
-$group[]=$form->createElement('radio', 'allow_user_edit_announcement', null, get_lang('AllowUserEditAnnouncementDeactivate'), 0);
330
+$group[] = $form->createElement('radio', 'allow_user_edit_announcement', get_lang('AllowUserEditAnnouncement'), get_lang('AllowUserEditAnnouncementActivate'), 1);
331
+$group[] = $form->createElement('radio', 'allow_user_edit_announcement', null, get_lang('AllowUserEditAnnouncementDeactivate'), 0);
332 332
 $form->addGroup($group, '', array(get_lang("AllowUserEditAnnouncement")), '');
333 333
 
334 334
 $group = array();
335
-$group[]=$form->createElement('radio', 'allow_user_image_forum', get_lang('AllowUserImageForum'), get_lang('AllowUserImageForumActivate'), 1);
336
-$group[]=$form->createElement('radio', 'allow_user_image_forum', null, get_lang('AllowUserImageForumDeactivate'), 0);
335
+$group[] = $form->createElement('radio', 'allow_user_image_forum', get_lang('AllowUserImageForum'), get_lang('AllowUserImageForumActivate'), 1);
336
+$group[] = $form->createElement('radio', 'allow_user_image_forum', null, get_lang('AllowUserImageForumDeactivate'), 0);
337 337
 $form->addGroup($group, '', array(get_lang("AllowUserImageForum")), '');
338 338
 
339 339
 $group = array();
340
-$group[]=$form->createElement('radio', 'allow_user_view_user_list', get_lang('AllowUserViewUserList'), get_lang('AllowUserViewUserListActivate'), 1);
341
-$group[]=$form->createElement('radio', 'allow_user_view_user_list', null, get_lang('AllowUserViewUserListDeactivate'), 0);
340
+$group[] = $form->createElement('radio', 'allow_user_view_user_list', get_lang('AllowUserViewUserList'), get_lang('AllowUserViewUserListActivate'), 1);
341
+$group[] = $form->createElement('radio', 'allow_user_view_user_list', null, get_lang('AllowUserViewUserListDeactivate'), 0);
342 342
 $form->addGroup($group, '', array(get_lang("AllowUserViewUserList")), '');
343 343
 $form->addButtonSave(get_lang('SaveSettings'), 'submit_save');
344 344
 $form->addElement('html', '</div></div>');
345 345
 
346 346
 // CHAT SETTINGS
347
-$form->addElement('html', '<div><h3>'.Display::return_icon('chat.png', Security::remove_XSS(get_lang('ConfigChat')),'',ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('ConfigChat')).'</h3><div>');
347
+$form->addElement('html', '<div><h3>'.Display::return_icon('chat.png', Security::remove_XSS(get_lang('ConfigChat')), '', ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('ConfigChat')).'</h3><div>');
348 348
 
349 349
 $group = array();
350
-$group[]=$form->createElement('radio', 'allow_open_chat_window', get_lang('AllowOpenchatWindow'), get_lang('AllowOpenChatWindowActivate'), 1);
351
-$group[]=$form->createElement('radio', 'allow_open_chat_window', null, get_lang('AllowOpenChatWindowDeactivate'), 0);
350
+$group[] = $form->createElement('radio', 'allow_open_chat_window', get_lang('AllowOpenchatWindow'), get_lang('AllowOpenChatWindowActivate'), 1);
351
+$group[] = $form->createElement('radio', 'allow_open_chat_window', null, get_lang('AllowOpenChatWindowDeactivate'), 0);
352 352
 $form->addGroup($group, '', array(get_lang("AllowOpenchatWindow")), '');
353 353
 $form->addButtonSave(get_lang('SaveSettings'), 'submit_save');
354 354
 $form->addElement('html', '</div></div>');
355 355
 
356 356
 // LEARNING PATH
357
-$form->addElement('html', '<div><h3>'.Display::return_icon('scorms.png', get_lang('ConfigLearnpath'),'',ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('ConfigLearnpath')).'</h3><div>');
357
+$form->addElement('html', '<div><h3>'.Display::return_icon('scorms.png', get_lang('ConfigLearnpath'), '', ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('ConfigLearnpath')).'</h3><div>');
358 358
 
359 359
 // Auto launch LP
360 360
 $group = array();
361
-$group[]=$form->createElement('radio', 'enable_lp_auto_launch', get_lang('LPAutoLaunch'), get_lang('RedirectToALearningPath'), 1);
362
-$group[]=$form->createElement('radio', 'enable_lp_auto_launch', get_lang('LPAutoLaunch'), get_lang('RedirectToTheLearningPathList'), 2);
363
-$group[]=$form->createElement('radio', 'enable_lp_auto_launch', null, get_lang('Deactivate'), 0);
361
+$group[] = $form->createElement('radio', 'enable_lp_auto_launch', get_lang('LPAutoLaunch'), get_lang('RedirectToALearningPath'), 1);
362
+$group[] = $form->createElement('radio', 'enable_lp_auto_launch', get_lang('LPAutoLaunch'), get_lang('RedirectToTheLearningPathList'), 2);
363
+$group[] = $form->createElement('radio', 'enable_lp_auto_launch', null, get_lang('Deactivate'), 0);
364 364
 $form->addGroup($group, '', array(get_lang("LPAutoLaunch")), '');
365 365
 
366 366
 if (api_get_setting('allow_course_theme') == 'true') {
367 367
     // Allow theme into Learning path
368 368
     $group = array();
369
-    $group[]=$form->createElement('radio', 'allow_learning_path_theme', get_lang('AllowLearningPathTheme'), get_lang('AllowLearningPathThemeAllow'), 1);
370
-    $group[]=$form->createElement('radio', 'allow_learning_path_theme', null, get_lang('AllowLearningPathThemeDisallow'), 0);
369
+    $group[] = $form->createElement('radio', 'allow_learning_path_theme', get_lang('AllowLearningPathTheme'), get_lang('AllowLearningPathThemeAllow'), 1);
370
+    $group[] = $form->createElement('radio', 'allow_learning_path_theme', null, get_lang('AllowLearningPathThemeDisallow'), 0);
371 371
     $form->addGroup($group, '', array(get_lang("AllowLearningPathTheme")), '');
372 372
 }
373 373
 
@@ -408,21 +408,21 @@  discard block
 block discarded – undo
408 408
     'html',
409 409
     '<div><h3>'.Display::return_icon(
410 410
     'course_progress.png',
411
-    Security::remove_XSS(get_lang('ThematicAdvanceConfiguration')),'',ICON_SIZE_SMALL
411
+    Security::remove_XSS(get_lang('ThematicAdvanceConfiguration')), '', ICON_SIZE_SMALL
412 412
     ).' '.Security::remove_XSS(get_lang('ThematicAdvanceConfiguration')).'</h3><div>'
413 413
 );
414 414
 
415 415
 $group = array();
416
-$group[]=$form->createElement('radio', 'display_info_advance_inside_homecourse', get_lang('InfoAboutAdvanceInsideHomeCourse'), get_lang('DisplayAboutLastDoneAdvance'), 1);
417
-$group[]=$form->createElement('radio', 'display_info_advance_inside_homecourse', null, get_lang('DisplayAboutNextAdvanceNotDone'), 2);
418
-$group[]=$form->createElement('radio', 'display_info_advance_inside_homecourse', null, get_lang('DisplayAboutNextAdvanceNotDoneAndLastDoneAdvance'), 3);
419
-$group[]=$form->createElement('radio', 'display_info_advance_inside_homecourse', null, get_lang('DoNotDisplayAnyAdvance'), 0);
416
+$group[] = $form->createElement('radio', 'display_info_advance_inside_homecourse', get_lang('InfoAboutAdvanceInsideHomeCourse'), get_lang('DisplayAboutLastDoneAdvance'), 1);
417
+$group[] = $form->createElement('radio', 'display_info_advance_inside_homecourse', null, get_lang('DisplayAboutNextAdvanceNotDone'), 2);
418
+$group[] = $form->createElement('radio', 'display_info_advance_inside_homecourse', null, get_lang('DisplayAboutNextAdvanceNotDoneAndLastDoneAdvance'), 3);
419
+$group[] = $form->createElement('radio', 'display_info_advance_inside_homecourse', null, get_lang('DoNotDisplayAnyAdvance'), 0);
420 420
 $form->addGroup($group, '', array(get_lang("InfoAboutAdvanceInsideHomeCourse")), '');
421 421
 $form->addButtonSave(get_lang('SaveSettings'), 'submit_save');
422 422
 $form->addElement('html', '</div></div>');
423 423
 
424 424
 // Document settings
425
-$form->addElement('html', '<div><h3>'.Display::return_icon('folder.png', Security::remove_XSS(get_lang('Documents')),'',ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('Documents')).'</h3><div>');
425
+$form->addElement('html', '<div><h3>'.Display::return_icon('folder.png', Security::remove_XSS(get_lang('Documents')), '', ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('Documents')).'</h3><div>');
426 426
 
427 427
 $group = array(
428 428
     $form->createElement('radio', 'show_system_folders', null, get_lang('Yes'), 1),
@@ -434,11 +434,11 @@  discard block
 block discarded – undo
434 434
 $form->addElement('html', '</div></div>');
435 435
 
436 436
 // Certificate settings
437
-if (api_get_setting('allow_public_certificates')=='true') {
438
-    $form->addElement('html', '<div><h3>'.Display::return_icon('certificate.png', Security::remove_XSS(get_lang('Certificates')),'',ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('Certificates')).'</h3><div>');
437
+if (api_get_setting('allow_public_certificates') == 'true') {
438
+    $form->addElement('html', '<div><h3>'.Display::return_icon('certificate.png', Security::remove_XSS(get_lang('Certificates')), '', ICON_SIZE_SMALL).' '.Security::remove_XSS(get_lang('Certificates')).'</h3><div>');
439 439
     $group = array();
440
-    $group[]=$form->createElement('radio', 'allow_public_certificates', get_lang('AllowPublicCertificates'), get_lang('Yes'), 1);
441
-    $group[]=$form->createElement('radio', 'allow_public_certificates', null, get_lang('No'), 0);
440
+    $group[] = $form->createElement('radio', 'allow_public_certificates', get_lang('AllowPublicCertificates'), get_lang('Yes'), 1);
441
+    $group[] = $form->createElement('radio', 'allow_public_certificates', null, get_lang('No'), 0);
442 442
     $form->addGroup($group, '', array(get_lang("AllowPublicCertificates")), '');
443 443
     $form->addButtonSave(get_lang('SaveSettings'), 'submit_save');
444 444
     $form->addElement('html', '</div></div>');
Please login to merge, or discard this patch.
main/course_info/maintenance.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
  */
7 7
 
8 8
 require_once '../inc/global.inc.php';
9
-$current_course_tool  = TOOL_COURSE_MAINTENANCE;
9
+$current_course_tool = TOOL_COURSE_MAINTENANCE;
10 10
 $this_section = SECTION_COURSES;
11 11
 
12 12
 $nameTools = get_lang('Maintenance');
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 <div class="sectioncomment"><?php echo get_lang('DescriptionRecycleCourse'); ?></div>
41 41
 
42 42
 <div class="sectiontitle"><?php Display::display_icon('delete.gif', get_lang('DelCourse')); ?>&nbsp;&nbsp;<a href="../course_info/delete_course.php?<?php echo api_get_cidreq(); ?>"><?php echo get_lang('DelCourse'); ?></a></div>
43
-<div class="sectioncomment"><?php echo get_lang('DescriptionDeleteCourse');	?></div>
43
+<div class="sectioncomment"><?php echo get_lang('DescriptionDeleteCourse'); ?></div>
44 44
 
45 45
 <?php
46 46
 // Footer
Please login to merge, or discard this patch.
main/course_info/legal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
         }
88 88
 
89 89
         if ($pluginLegal) {
90
-            header('Location:' .$url);
90
+            header('Location:'.$url);
91 91
             exit;
92 92
         }
93 93
     }
Please login to merge, or discard this patch.
main/course_info/maintenance_coach.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,12 +27,12 @@
 block discarded – undo
27 27
 echo Display::page_subheader(
28 28
     Display::return_icon(
29 29
         'save_import.gif', get_lang('Backup')
30
-    ) . '&nbsp;&nbsp;' . get_lang('Backup')
30
+    ).'&nbsp;&nbsp;'.get_lang('Backup')
31 31
 );
32 32
 
33 33
 $url = api_get_path(
34 34
         WEB_CODE_PATH
35
-    ) . 'coursecopy/copy_course_session_selected.php?' . api_get_cidreq();
35
+    ).'coursecopy/copy_course_session_selected.php?'.api_get_cidreq();
36 36
 
37 37
 $link = Display::url(get_lang('CopyCourse'), $url);
38 38
 ?>
Please login to merge, or discard this patch.
main/course_info/delete_course.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     Session::erase('_real_cid');
37 37
     $noPHP_SELF = true;
38 38
     $message = '<h2>'.get_lang('Course').' : '.$current_course_name.' ('.$current_course_code.') </h2>';
39
-    $message .=get_lang('HasDel');
39
+    $message .= get_lang('HasDel');
40 40
     $message .= '<br /><br /><a href="../../index.php">'.get_lang('BackHome').' '.api_get_setting('siteName').'</a>';
41 41
 
42 42
 } else {
Please login to merge, or discard this patch.
main/create_course/add_course.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 </script>';
41 41
 
42 42
 $interbreadcrumb[] = array(
43
-    'url' => api_get_path(WEB_PATH) . 'user_portal.php',
43
+    'url' => api_get_path(WEB_PATH).'user_portal.php',
44 44
     'name' => get_lang('MyCourses')
45 45
 );
46 46
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 );
91 91
 
92 92
 // Category category.
93
-$url = api_get_path(WEB_AJAX_PATH) . 'course.ajax.php?a=search_category';
93
+$url = api_get_path(WEB_AJAX_PATH).'course.ajax.php?a=search_category';
94 94
 
95 95
 $form->addElement(
96 96
     'select_ajax',
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
                 $url .= 'course_info/start.php?cidReq=';
300 300
                 $url .= $course_info['code'];
301 301
                 $url .= '&first=1';
302
-                header('Location: ' . $url);
302
+                header('Location: '.$url);
303 303
                 exit;
304 304
             } else {
305 305
                 $message = Display::return_message(
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
 
327 327
             if ($request_id) {
328 328
                 $course_request_info = CourseRequestManager::get_course_request_info($request_id);
329
-                $message = (is_array($course_request_info) ? '<strong>' . $course_request_info['code'] . '</strong> : ' : '') . get_lang('CourseRequestCreated');
329
+                $message = (is_array($course_request_info) ? '<strong>'.$course_request_info['code'].'</strong> : ' : '').get_lang('CourseRequestCreated');
330 330
                 $message = Display::return_message(
331 331
                     $message,
332 332
                     'confirmation',
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
                     'div',
337 337
                     Display::url(
338 338
                         get_lang('Enter'),
339
-                        api_get_path(WEB_PATH) . 'user_portal.php',
339
+                        api_get_path(WEB_PATH).'user_portal.php',
340 340
                         ['class' => 'btn btn-default']
341 341
                     ),
342 342
                     ['style' => 'float: left; margin:0px; padding: 0px;']
Please login to merge, or discard this patch.
main/work/edit_work.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
 $htmlHeadXtra[] = to_javascript_work();
32 32
 $interbreadcrumb[] = array(
33
-    'url' => api_get_path(WEB_CODE_PATH) . 'work/work.php?' . api_get_cidreq(),
33
+    'url' => api_get_path(WEB_CODE_PATH).'work/work.php?'.api_get_cidreq(),
34 34
     'name' => get_lang('StudentPublications')
35 35
 );
36 36
 $interbreadcrumb[] = array('url' => '#', 'name' => get_lang('Edit'));
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 $form = new FormValidator(
39 39
     'edit_dir',
40 40
     'post',
41
-    api_get_path(WEB_CODE_PATH) . 'work/edit_work.php?id=' . $workId . '&' . api_get_cidreq()
41
+    api_get_path(WEB_CODE_PATH).'work/edit_work.php?id='.$workId.'&'.api_get_cidreq()
42 42
 );
43 43
 $form->addElement('header', get_lang('Edit'));
44 44
 
Please login to merge, or discard this patch.