@@ -142,7 +142,7 @@ |
||
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 | ) |
@@ -28,7 +28,7 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -6,7 +6,7 @@ discard block |
||
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 |
||
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')); ?> <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 |
@@ -87,7 +87,7 @@ |
||
87 | 87 | } |
88 | 88 | |
89 | 89 | if ($pluginLegal) { |
90 | - header('Location:' .$url); |
|
90 | + header('Location:'.$url); |
|
91 | 91 | exit; |
92 | 92 | } |
93 | 93 | } |
@@ -27,12 +27,12 @@ |
||
27 | 27 | echo Display::page_subheader( |
28 | 28 | Display::return_icon( |
29 | 29 | 'save_import.gif', get_lang('Backup') |
30 | - ) . ' ' . get_lang('Backup') |
|
30 | + ).' '.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 | ?> |
@@ -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 { |
@@ -44,7 +44,7 @@ |
||
44 | 44 | $message .= '<p><a class="btn btn-primary" href="'.api_get_path(WEB_CODE_PATH).'course_info/maintenance.php?'.api_get_cidreq().'">'. |
45 | 45 | get_lang('No').'</a> <a class="btn btn-danger" href="'.api_get_self().'?delete=yes&'.api_get_cidreq().'">'. |
46 | 46 | get_lang('Yes').'</a></p>'; |
47 | - $interbreadcrumb[] = array('url' => 'maintenance.php', 'name' => get_lang('Maintenance')); |
|
47 | + $interbreadcrumb[] = array('url' => 'maintenance.php', 'name' => get_lang('Maintenance')); |
|
48 | 48 | } |
49 | 49 | Display :: display_header($tool_name, 'Settings'); |
50 | 50 | echo Display::page_header($tool_name); |
@@ -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( |