diff --git a/main/admin/course_request_review.php b/main/admin/course_request_review.php index 2cc8a185ac..c3b420952c 100755 --- a/main/admin/course_request_review.php +++ b/main/admin/course_request_review.php @@ -188,8 +188,8 @@ function modify_filter($id) { $code = CourseRequestManager::get_course_request_code($id); $result = ''.Display::return_icon('edit.png', get_lang('Edit'), array('style' => 'vertical-align: middle;')).''. - ' '.Display::return_icon('accept.png', get_lang('AcceptThisCourseRequest'), array('style' => 'vertical-align: middle;', 'onclick' => 'javascript: if (!confirm(\''.addslashes(api_htmlentities(sprintf(get_lang('ANewCourseWillBeCreated'), $code), ENT_QUOTES)).'\')) return false;'),16).''. - ' '.Display::return_icon('error.png', get_lang('RejectThisCourseRequest'), array('style' => 'vertical-align: middle;', 'onclick' => 'javascript: if (!confirm(\''.addslashes(api_htmlentities(sprintf(get_lang('ACourseRequestWillBeRejected'), $code), ENT_QUOTES)).'\')) return false;'),16).''; + ' '.Display::return_icon('accept.png', get_lang('AcceptThisCourseRequest'), array('style' => 'vertical-align: middle;', 'onclick' => 'javascript: if (!confirm(\''.addslashes(api_htmlentities(sprintf(get_lang('ANewCourseWillBeCreated'), $code), ENT_QUOTES)).'\')) return false;'), 16).''. + ' '.Display::return_icon('error.png', get_lang('RejectThisCourseRequest'), array('style' => 'vertical-align: middle;', 'onclick' => 'javascript: if (!confirm(\''.addslashes(api_htmlentities(sprintf(get_lang('ACourseRequestWillBeRejected'), $code), ENT_QUOTES)).'\')) return false;'), 16).''; if (!CourseRequestManager::additional_info_asked($id)) { $result .= ' '.Display::return_icon('request_info.gif', get_lang('AskAdditionalInfo'), array('style' => 'vertical-align: middle;', 'onclick' => 'javascript: if (!confirm(\''.addslashes(api_htmlentities(sprintf(get_lang('AdditionalInfoWillBeAsked'), $code), ENT_QUOTES)).'\')) return false;')).''; } diff --git a/main/admin/skill_badge.php b/main/admin/skill_badge.php index d213931a4e..7abbec575d 100644 --- a/main/admin/skill_badge.php +++ b/main/admin/skill_badge.php @@ -23,14 +23,14 @@ if (strcmp($backpack, $configBackpack) !== 0) { $interbreadcrumb = array( array( - 'url' => api_get_path(WEB_CODE_PATH) . 'admin/index.php', + 'url' => api_get_path(WEB_CODE_PATH).'admin/index.php', 'name' => get_lang('Administration') ) ); $toolbar = Display::toolbarButton( get_lang('ManageSkills'), - api_get_path(WEB_CODE_PATH) . 'admin/skill_list.php', + api_get_path(WEB_CODE_PATH).'admin/skill_list.php', 'list', 'primary', ['title' => get_lang('ManageSkills')] diff --git a/main/admin/skill_badge_list.php b/main/admin/skill_badge_list.php index 153cfe7dd5..5904ebc644 100644 --- a/main/admin/skill_badge_list.php +++ b/main/admin/skill_badge_list.php @@ -30,18 +30,18 @@ $skills = $objSkill->get_all(); $interbreadcrumb = array( array( - 'url' => api_get_path(WEB_CODE_PATH) . 'admin/index.php', + 'url' => api_get_path(WEB_CODE_PATH).'admin/index.php', 'name' => get_lang('Administration') ), array( - 'url' => api_get_path(WEB_CODE_PATH) . 'admin/skill_badge.php', + 'url' => api_get_path(WEB_CODE_PATH).'admin/skill_badge.php', 'name' => get_lang('Badges') ) ); $toolbar = Display::toolbarButton( get_lang('ManageSkills'), - api_get_path(WEB_CODE_PATH) . 'admin/skill_list.php', + api_get_path(WEB_CODE_PATH).'admin/skill_list.php', 'list', 'primary', ['title' => get_lang('ManageSkills')] diff --git a/main/admin/teacher_time_report.php b/main/admin/teacher_time_report.php index e7112d0e49..200090cf66 100644 --- a/main/admin/teacher_time_report.php +++ b/main/admin/teacher_time_report.php @@ -294,7 +294,7 @@ $timeReport->sortData($withFilter); if (isset($_GET['export'])) { $dataToExport = $timeReport->prepareDataToExport($withFilter); - $fileName = get_lang('TeacherTimeReport') . ' ' . api_get_local_time(); + $fileName = get_lang('TeacherTimeReport').' '.api_get_local_time(); switch ($_GET['export']) { case 'pdf': diff --git a/main/badge/class.php b/main/badge/class.php index 72e36322a8..7547ef7ebe 100644 --- a/main/badge/class.php +++ b/main/badge/class.php @@ -18,9 +18,9 @@ $skill = $objSkill->get($skillId); $json = array( 'name' => $skill['name'], 'description' => $skill['description'], - 'image' => api_get_path(WEB_UPLOAD_PATH) . "badges/{$skill['icon']}", - 'criteria' => api_get_path(WEB_CODE_PATH) . "badge/criteria.php?id=$skillId", - 'issuer' => api_get_path(WEB_CODE_PATH) . "badge/issuer.php", + 'image' => api_get_path(WEB_UPLOAD_PATH)."badges/{$skill['icon']}", + 'criteria' => api_get_path(WEB_CODE_PATH)."badge/criteria.php?id=$skillId", + 'issuer' => api_get_path(WEB_CODE_PATH)."badge/issuer.php", ); echo json_encode($json); diff --git a/main/badge/criteria.php b/main/badge/criteria.php index 5a7eff00a0..280def9789 100644 --- a/main/badge/criteria.php +++ b/main/badge/criteria.php @@ -16,7 +16,7 @@ if (!$skill) { Display::return_message(get_lang('SkillNotFound'), 'error') ); - header('Location: ' . api_get_path(WEB_PATH)); + header('Location: '.api_get_path(WEB_PATH)); exit; } diff --git a/main/calendar/agenda_js.php b/main/calendar/agenda_js.php index e97a94b345..941af60be8 100755 --- a/main/calendar/agenda_js.php +++ b/main/calendar/agenda_js.php @@ -36,7 +36,7 @@ if (api_is_platform_admin() && ($type == 'admin' || $type == 'platform')) { if (isset($_REQUEST['cidReq']) && !empty($_REQUEST['cidReq'])) { if ($_REQUEST['cidReq'] == -1) { // When is out of the course tool (e.g My agenda) - header('Location: ' . api_get_self()); + header('Location: '.api_get_self()); exit; } else { $type = 'course'; diff --git a/main/course_info/maintenance_coach.php b/main/course_info/maintenance_coach.php index afa47b9bbc..ad41b3e33c 100644 --- a/main/course_info/maintenance_coach.php +++ b/main/course_info/maintenance_coach.php @@ -27,12 +27,12 @@ Display :: display_header($nameTools); echo Display::page_subheader( Display::return_icon( 'save_import.gif', get_lang('Backup') - ) . ' ' . get_lang('Backup') + ).' '.get_lang('Backup') ); $url = api_get_path( WEB_CODE_PATH - ) . 'coursecopy/copy_course_session_selected.php?' . api_get_cidreq(); + ).'coursecopy/copy_course_session_selected.php?'.api_get_cidreq(); $link = Display::url(get_lang('CopyCourse'), $url); ?> diff --git a/main/dashboard/index.php b/main/dashboard/index.php index d52c666d2b..ca62223c6f 100755 --- a/main/dashboard/index.php +++ b/main/dashboard/index.php @@ -20,12 +20,12 @@ api_block_anonymous_users(); // current section $this_section = SECTION_DASHBOARD; -unset($_SESSION['this_section']);//for hmtl editor repository +unset($_SESSION['this_section']); //for hmtl editor repository // get actions $actions = array('listing', 'store_user_block', 'disable_block'); $action = 'listing'; -if (isset($_GET['action']) && in_array($_GET['action'],$actions)) { +if (isset($_GET['action']) && in_array($_GET['action'], $actions)) { $action = $_GET['action']; } diff --git a/main/document/edit_odf.php b/main/document/edit_odf.php index 3e2e824bf7..1e6cf51b61 100755 --- a/main/document/edit_odf.php +++ b/main/document/edit_odf.php @@ -39,7 +39,7 @@ $show_web_odf = false; $web_odf_supported_files = DocumentManager::get_web_odf_extension_list(); if (in_array(strtolower($pathinfo['extension']), $web_odf_supported_files)) { - $show_web_odf = true; + $show_web_odf = true; } $file_url_web = api_get_path(WEB_COURSE_PATH).$_course['path'].'/document'.$header_file; @@ -90,8 +90,8 @@ if (empty($document_data['parents'])) { echo Display::display_header(''); echo '