@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | $current_course_name = $_course['name']; |
22 | 22 | |
23 | 23 | if (!api_is_allowed_to_edit()) { |
24 | - api_not_allowed(true); |
|
24 | + api_not_allowed(true); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | $tool_name = get_lang('DelCourse'); |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $message .= '<p><a class="btn btn-primary" href="'.api_get_path(WEB_CODE_PATH).'course_info/maintenance.php?'.api_get_cidreq().'">'. |
46 | 46 | get_lang('No').'</a> <a class="btn btn-danger" href="'.api_get_self().'?delete=yes&'.api_get_cidreq().'">'. |
47 | 47 | get_lang('Yes').'</a></p>'; |
48 | - $interbreadcrumb[] = array('url' => 'maintenance.php', 'name' => get_lang('Maintenance')); |
|
48 | + $interbreadcrumb[] = array('url' => 'maintenance.php', 'name' => get_lang('Maintenance')); |
|
49 | 49 | } |
50 | 50 | Display :: display_header($tool_name, 'Settings'); |
51 | 51 | echo Display::page_header($tool_name); |
@@ -36,7 +36,7 @@ |
||
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 { |
@@ -40,7 +40,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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;'] |
@@ -30,7 +30,7 @@ discard block |
||
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 |
||
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 |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | use Symfony\Component\Finder\Finder; |
6 | 6 | |
7 | 7 | require_once '../inc/global.inc.php'; |
8 | -$current_course_tool = TOOL_STUDENTPUBLICATION; |
|
8 | +$current_course_tool = TOOL_STUDENTPUBLICATION; |
|
9 | 9 | |
10 | 10 | api_protect_course_script(true); |
11 | 11 | |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | $zip = new PclZip($_FILES['file']['tmp_name']); |
71 | 71 | |
72 | 72 | // Check the zip content (real size and file extension) |
73 | - $zipFileList = (array)$zip->listContent(); |
|
73 | + $zipFileList = (array) $zip->listContent(); |
|
74 | 74 | |
75 | 75 | $realSize = 0; |
76 | 76 | foreach ($zipFileList as & $this_content) { |
@@ -41,7 +41,7 @@ |
||
41 | 41 | ) { |
42 | 42 | if (Security::check_abs_path( |
43 | 43 | $workData['file_path'], |
44 | - api_get_path(SYS_COURSE_PATH) . api_get_course_path() . '/' |
|
44 | + api_get_path(SYS_COURSE_PATH).api_get_course_path().'/' |
|
45 | 45 | ) |
46 | 46 | ) { |
47 | 47 | DocumentManager::file_send_for_download( |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | use ChamiloSession as Session; |
5 | 5 | |
6 | 6 | require_once '../inc/global.inc.php'; |
7 | -$current_course_tool = TOOL_STUDENTPUBLICATION; |
|
7 | +$current_course_tool = TOOL_STUDENTPUBLICATION; |
|
8 | 8 | |
9 | 9 | api_protect_course_script(true); |
10 | 10 | |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | // Only a teachers page. |
30 | 30 | |
31 | 31 | if (!empty($group_id)) { |
32 | - $group_properties = GroupManager :: get_group_properties($group_id); |
|
32 | + $group_properties = GroupManager :: get_group_properties($group_id); |
|
33 | 33 | $show_work = false; |
34 | 34 | |
35 | 35 | if (api_is_allowed_to_edit(false, true)) { |
@@ -74,8 +74,8 @@ discard block |
||
74 | 74 | $usersAdded[] = $myUserId; |
75 | 75 | $userInfo = api_get_user_info($myUserId); |
76 | 76 | $url = api_get_path(WEB_CODE_PATH).'work/add_user.php?action=delete&id='.$workId.'&user_id='.$myUserId; |
77 | - $link = Display::url('<em class="fa fa-trash"></em> ' . get_lang('Delete'), $url, array('class' => 'btn btn-danger btn-sm')); |
|
78 | - echo '<li class="list-group-item">' . $userInfo['complete_name_with_username'] . '<div class="pull-right">' . $link . '</div></li>'; |
|
77 | + $link = Display::url('<em class="fa fa-trash"></em> '.get_lang('Delete'), $url, array('class' => 'btn btn-danger btn-sm')); |
|
78 | + echo '<li class="list-group-item">'.$userInfo['complete_name_with_username'].'<div class="pull-right">'.$link.'</div></li>'; |
|
79 | 79 | } |
80 | 80 | echo '</ul>'; |
81 | 81 | } |
@@ -108,8 +108,8 @@ discard block |
||
108 | 108 | foreach ($userToAddList as $user) { |
109 | 109 | $userName = api_get_person_name($user['firstname'], $user['lastname']).' ('.$user['username'].') '; |
110 | 110 | $url = api_get_path(WEB_CODE_PATH).'work/add_user.php?action=add&id='.$workId.'&user_id='.$user['user_id']; |
111 | - $link = Display::url('<em class="fa fa-plus"></em> ' . get_lang('Add'), $url, array('class' => 'btn btn-primary btn-sm')); |
|
112 | - echo '<li class="list-group-item">' . $userName . '<div class="pull-right"> ' . $link . '</div></li>'; |
|
111 | + $link = Display::url('<em class="fa fa-plus"></em> '.get_lang('Add'), $url, array('class' => 'btn btn-primary btn-sm')); |
|
112 | + echo '<li class="list-group-item">'.$userName.'<div class="pull-right"> '.$link.'</div></li>'; |
|
113 | 113 | } |
114 | 114 | echo '</ul>'; |
115 | 115 | } else { |
@@ -4,7 +4,7 @@ |
||
4 | 4 | use ChamiloSession as Session; |
5 | 5 | |
6 | 6 | require_once '../inc/global.inc.php'; |
7 | -$current_course_tool = TOOL_STUDENTPUBLICATION; |
|
7 | +$current_course_tool = TOOL_STUDENTPUBLICATION; |
|
8 | 8 | |
9 | 9 | api_protect_course_script(true); |
10 | 10 |
@@ -72,8 +72,8 @@ discard block |
||
72 | 72 | |
73 | 73 | $zip_file = CourseArchiver::write_course($course); |
74 | 74 | Display::display_confirmation_message(get_lang('BackupCreated')); |
75 | - echo '<br /><a class="btn btn-primary btn-large" href="' . api_get_path(WEB_CODE_PATH) . 'course_info/download.php?archive=' . $zip_file . '&' . api_get_cidreq() . '"> |
|
76 | - ' . get_lang('Download') . '</a>'; |
|
75 | + echo '<br /><a class="btn btn-primary btn-large" href="'.api_get_path(WEB_CODE_PATH).'course_info/download.php?archive='.$zip_file.'&'.api_get_cidreq().'"> |
|
76 | + ' . get_lang('Download').'</a>'; |
|
77 | 77 | |
78 | 78 | } elseif (Security::check_token('post') && ( |
79 | 79 | isset($_POST['backup_option']) && |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | if (!$course->has_resources()) { |
96 | 96 | echo get_lang('NoResourcesToBackup'); |
97 | 97 | } else { |
98 | - $form = new FormValidator('create_backup_form', 'post', api_get_self() . '?' . api_get_cidreq()); |
|
98 | + $form = new FormValidator('create_backup_form', 'post', api_get_self().'?'.api_get_cidreq()); |
|
99 | 99 | $form->addElement('header', get_lang('SelectOptionForBackup')); |
100 | 100 | $form->addElement('radio', 'backup_option', '', get_lang('CreateFullBackup'), 'full_backup'); |
101 | 101 | $form->addElement('radio', 'backup_option', '', get_lang('LetMeSelectItems'), 'select_items'); |