@@ -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( |
@@ -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 | |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | |
| 8 | 8 | // Setting the global file that gets the general configuration, the databases, the languages, ... |
| 9 | 9 | require_once '../inc/global.inc.php'; |
| 10 | -$current_course_tool = TOOL_COURSE_MAINTENANCE; |
|
| 10 | +$current_course_tool = TOOL_COURSE_MAINTENANCE; |
|
| 11 | 11 | api_protect_course_script(true); |
| 12 | 12 | |
| 13 | 13 | // Including additional libraries |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | $form->addGroup($group, '', get_lang('SameFilename')); |
| 121 | 121 | $form->add_progress_bar(); |
| 122 | 122 | $form->addButtonSave(get_lang('CopyCourse')); |
| 123 | - $form->setDefaults(array('copy_option' =>'select_items','same_file_name_option' => FILE_OVERWRITE)); |
|
| 123 | + $form->setDefaults(array('copy_option' =>'select_items', 'same_file_name_option' => FILE_OVERWRITE)); |
|
| 124 | 124 | |
| 125 | 125 | // Add Security token |
| 126 | 126 | $token = Security::get_token(); |
@@ -98,21 +98,21 @@ discard block |
||
| 98 | 98 | $cr->set_file_option($_POST['same_file_name_option']); |
| 99 | 99 | $cr->restore(); |
| 100 | 100 | Display::display_normal_message(get_lang('ImportFinished')); |
| 101 | - echo '<a class="btn btn-default" href="' . api_get_path(WEB_COURSE_PATH) . api_get_course_path() . '/index.php">' . get_lang('CourseHomepage') . '</a>'; |
|
| 101 | + echo '<a class="btn btn-default" href="'.api_get_path(WEB_COURSE_PATH).api_get_course_path().'/index.php">'.get_lang('CourseHomepage').'</a>'; |
|
| 102 | 102 | } else { |
| 103 | 103 | if (!$error) { |
| 104 | 104 | Display::display_warning_message(get_lang('NoResourcesInBackupFile')); |
| 105 | - echo '<a class="btn btn-default" href="import_backup.php?' . api_get_cidreq() . '">' . get_lang('TryAgain') . '</a>'; |
|
| 105 | + echo '<a class="btn btn-default" href="import_backup.php?'.api_get_cidreq().'">'.get_lang('TryAgain').'</a>'; |
|
| 106 | 106 | } elseif ($filename === false) { |
| 107 | 107 | Display::display_error_message(get_lang('ArchivesDirectoryNotWriteableContactAdmin')); |
| 108 | - echo '<a class="btn btn-default" href="import_backup.php?' . api_get_cidreq() . '">' . get_lang('TryAgain') . '</a>'; |
|
| 108 | + echo '<a class="btn btn-default" href="import_backup.php?'.api_get_cidreq().'">'.get_lang('TryAgain').'</a>'; |
|
| 109 | 109 | } else { |
| 110 | 110 | if ($filename == '') { |
| 111 | 111 | Display::display_error_message(get_lang('SelectBackupFile')); |
| 112 | - echo '<a class="btn btn-default" href="import_backup.php?' . api_get_cidreq() . '">' . get_lang('TryAgain') . '</a>'; |
|
| 112 | + echo '<a class="btn btn-default" href="import_backup.php?'.api_get_cidreq().'">'.get_lang('TryAgain').'</a>'; |
|
| 113 | 113 | } else { |
| 114 | 114 | Display::display_error_message(get_lang('UploadError')); |
| 115 | - echo '<a class="btn btn-default" href="import_backup.php?' . api_get_cidreq() . '">' . get_lang('TryAgain') . '</a>'; |
|
| 115 | + echo '<a class="btn btn-default" href="import_backup.php?'.api_get_cidreq().'">'.get_lang('TryAgain').'</a>'; |
|
| 116 | 116 | } |
| 117 | 117 | } |
| 118 | 118 | } |
@@ -142,10 +142,10 @@ discard block |
||
| 142 | 142 | CourseSelectForm::display_form($course, $hiddenFields); |
| 143 | 143 | } elseif ($filename === false) { |
| 144 | 144 | Display::display_error_message(get_lang('ArchivesDirectoryNotWriteableContactAdmin')); |
| 145 | - echo '<a class="btn btn-default" href="import_backup.php?' . api_get_cidreq() . '">' . get_lang('TryAgain') . '</a>'; |
|
| 145 | + echo '<a class="btn btn-default" href="import_backup.php?'.api_get_cidreq().'">'.get_lang('TryAgain').'</a>'; |
|
| 146 | 146 | } else { |
| 147 | 147 | Display::display_warning_message(get_lang('NoResourcesInBackupFile')); |
| 148 | - echo '<a class="btn btn-default" href="import_backup.php?' . api_get_cidreq() . '">' . get_lang('TryAgain') . '</a>'; |
|
| 148 | + echo '<a class="btn btn-default" href="import_backup.php?'.api_get_cidreq().'">'.get_lang('TryAgain').'</a>'; |
|
| 149 | 149 | } |
| 150 | 150 | } else { |
| 151 | 151 | $user = api_get_user_info(); |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | $form = new FormValidator( |
| 158 | 158 | 'import_backup_form', |
| 159 | 159 | 'post', |
| 160 | - api_get_path(WEB_CODE_PATH) . 'coursecopy/import_backup.php?' . api_get_cidreq(), |
|
| 160 | + api_get_path(WEB_CODE_PATH).'coursecopy/import_backup.php?'.api_get_cidreq(), |
|
| 161 | 161 | '', |
| 162 | 162 | array('enctype' => 'multipart/form-data') |
| 163 | 163 | ); |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | ); |
| 190 | 190 | $options['null'] = '-'; |
| 191 | 191 | foreach ($backups as $index => $backup) { |
| 192 | - $options[$backup['file']] = $backup['course_code'] . ' (' . $backup['date'] . ')'; |
|
| 192 | + $options[$backup['file']] = $backup['course_code'].' ('.$backup['date'].')'; |
|
| 193 | 193 | } |
| 194 | 194 | $form->addElement( |
| 195 | 195 | 'select', |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | 'radio', |
| 208 | 208 | '', |
| 209 | 209 | '', |
| 210 | - '<i>' . get_lang('NoBackupsAvailable') . '</i>', |
|
| 210 | + '<i>'.get_lang('NoBackupsAvailable').'</i>', |
|
| 211 | 211 | '', |
| 212 | 212 | 'disabled="true"' |
| 213 | 213 | ); |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | require_once '../inc/global.inc.php'; |
| 10 | -$this_section = SECTION_COURSES; |
|
| 10 | +$this_section = SECTION_COURSES; |
|
| 11 | 11 | |
| 12 | 12 | if (extension_loaded('xapian')) { |
| 13 | 13 | require '../newscorm/lp_list_search.php'; |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | $this_section = SECTION_COURSES; |
| 11 | 11 | |
| 12 | 12 | if (extension_loaded('xapian')) { |
| 13 | - require '../lp/lp_list_search.php'; |
|
| 13 | + require '../lp/lp_list_search.php'; |
|
| 14 | 14 | } else { |
| 15 | 15 | Display::display_header(get_lang('Search')); |
| 16 | 16 | Display::display_error_message(get_lang('SearchXapianModuleNotInstalled')); |