diff --git a/assets/vue/components/layout/Sidebar.vue b/assets/vue/components/layout/Sidebar.vue index edb32cdda4..24dc5efa9b 100644 --- a/assets/vue/components/layout/Sidebar.vue +++ b/assets/vue/components/layout/Sidebar.vue @@ -135,7 +135,7 @@ const items = ref([ }, { label: t('Reporting'), - url: '/main/mySpace/index.php', + url: '/main/my_space/index.php', }, ], }, diff --git a/psalm.xml b/psalm.xml index d108ee1120..409f5b1b45 100644 --- a/psalm.xml +++ b/psalm.xml @@ -41,7 +41,7 @@ - + diff --git a/public/main/install/configuration.dist.php b/public/main/install/configuration.dist.php index 2a2175ef77..043c59223e 100644 --- a/public/main/install/configuration.dist.php +++ b/public/main/install/configuration.dist.php @@ -631,7 +631,7 @@ $_configuration['gradebook_badge_sidebar'] = [ // Block access to any user to "my progress" page //$_configuration['block_my_progress_page'] = false; -// Add user extra fields in report: main/mySpace/exercise_category_report.php +// Add user extra fields in report: main/my_space/exercise_category_report.php //$_configuration['exercise_category_report_user_extra_fields'] = ['fields' => ['skype', 'rssfeeds']]; // Order sessions by position in user session list (UserManager::get_sessions_by_category) @@ -1397,7 +1397,7 @@ $_configuration['auth_password_links'] = [ // VALUES (2, 13, 'popular_courses', 'Popular course', 1, 1, NOW()); // $_configuration['popular_courses_handpicked'] = false; -// Default items per page in main/mySpace/users.php +// Default items per page in main/my_space/users.php // $_configuration['my_space_users_items_per_page'] = 10; // Add teachers column in course list. diff --git a/public/main/my_space/company_reports.php b/public/main/my_space/company_reports.php index 4c7ea044c7..e66dd23e6f 100644 --- a/public/main/my_space/company_reports.php +++ b/public/main/my_space/company_reports.php @@ -231,7 +231,7 @@ if (api_is_student_boss()) { ); $actions .= Display::url( Display::return_icon('user.png', get_lang('Learners'), [], ICON_SIZE_MEDIUM), - api_get_path(WEB_CODE_PATH).'mySpace/student.php' + api_get_path(WEB_CODE_PATH).'my_space/student.php' ); $actions .= Display::url( Display::return_icon('statistics.png', get_lang('Corporate report'), [], ICON_SIZE_MEDIUM), @@ -254,7 +254,7 @@ if (!empty($actions)) { } $content .= Display::url( get_lang("Corporate reportResumed"), - api_get_path(WEB_CODE_PATH).'mySpace/company_reports_resumed.php', + api_get_path(WEB_CODE_PATH).'my_space/company_reports_resumed.php', [ 'class' => 'btn btn--success', ] diff --git a/public/main/my_space/company_reports_resumed.php b/public/main/my_space/company_reports_resumed.php index e3464eef8a..7fd2a91dc2 100644 --- a/public/main/my_space/company_reports_resumed.php +++ b/public/main/my_space/company_reports_resumed.php @@ -90,11 +90,11 @@ if (api_is_student_boss()) { ); $actions .= Display::url( Display::return_icon('user.png', get_lang('Learners'), [], ICON_SIZE_MEDIUM), - api_get_path(WEB_CODE_PATH).'mySpace/student.php' + api_get_path(WEB_CODE_PATH).'my_space/student.php' ); $actions .= Display::url( Display::return_icon('statistics.png', get_lang('Corporate report'), [], ICON_SIZE_MEDIUM), - api_get_path(WEB_CODE_PATH).'mySpace/company_reports.php' + api_get_path(WEB_CODE_PATH).'my_space/company_reports.php' ); $actions .= Display::url( Display::return_icon( @@ -116,7 +116,7 @@ if (!empty($actions)) { if (!api_is_student_boss()) { $content .= Display::url( get_lang("Corporate report"), - api_get_path(WEB_CODE_PATH)."mySpace/company_reports.php", + api_get_path(WEB_CODE_PATH)."my_space/company_reports.php", [ 'class' => 'btn btn--success', ] diff --git a/public/main/my_space/course.php b/public/main/my_space/course.php index 463284e104..4556c862c0 100644 --- a/public/main/my_space/course.php +++ b/public/main/my_space/course.php @@ -100,16 +100,16 @@ if (api_is_platform_admin(true, true)) { ); $menu_items[] = Display::url( Display::return_icon('session.png', get_lang('Sessions'), [], ICON_SIZE_MEDIUM), - api_get_path(WEB_CODE_PATH).'mySpace/session.php' + api_get_path(WEB_CODE_PATH).'my_space/session.php' ); $menu_items[] = Display::url( get_lang('Question stats'), - api_get_path(WEB_CODE_PATH).'mySpace/question_stats_global.php' + api_get_path(WEB_CODE_PATH).'my_space/question_stats_global.php' ); $menu_items[] = Display::url( get_lang('Detailed questions stats'), - api_get_path(WEB_CODE_PATH).'mySpace/question_stats_global_detail.php' + api_get_path(WEB_CODE_PATH).'my_space/question_stats_global_detail.php' ); if (api_can_login_as($user_id)) { $link = 'set_header(7, get_lang('Assignments'), false); $table->set_header(8, get_lang('Attendances'), false); $table->set_header(9, get_lang('Details'), false); -$form = new FormValidator('search_course', 'get', api_get_path(WEB_CODE_PATH).'mySpace/course.php'); +$form = new FormValidator('search_course', 'get', api_get_path(WEB_CODE_PATH).'my_space/course.php'); $form->addElement('text', 'keyword', get_lang('Keyword')); $form->addButtonSearch(get_lang('Search')); $form->addElement('hidden', 'sid', $sessionId); diff --git a/public/main/my_space/current_courses.php b/public/main/my_space/current_courses.php index 69c1b66d56..2125314c48 100644 --- a/public/main/my_space/current_courses.php +++ b/public/main/my_space/current_courses.php @@ -242,8 +242,8 @@ foreach ($array as $row_table) { } echo ''; echo '
'; echo $table->toHtml(); diff --git a/public/main/my_space/myStudents.php b/public/main/my_space/myStudents.php index ef2d165a7d..bf0eaed9fc 100644 --- a/public/main/my_space/myStudents.php +++ b/public/main/my_space/myStudents.php @@ -508,7 +508,7 @@ switch ($action) { $bossList = UserManager::getStudentBossList($studentId); if (!empty($bossList)) { - $url = api_get_path(WEB_CODE_PATH).'mySpace/myStudents.php?student='.$studentId; + $url = api_get_path(WEB_CODE_PATH).'my_space/myStudents.php?student='.$studentId; $link = Display::url($url, $url); foreach ($bossList as $boss) { @@ -733,7 +733,7 @@ $actions .= ' api_get_path(WEB_CODE_PATH)."my_space/student.php", "name" => get_lang('User list'), ]; diff --git a/public/main/my_space/users.php b/public/main/my_space/users.php index 3c709e679a..cc11e8be51 100644 --- a/public/main/my_space/users.php +++ b/public/main/my_space/users.php @@ -252,7 +252,7 @@ if (api_is_drh()) { ); $actionsLeft .= Display::url( Display::return_icon('statistics.png', get_lang("Corporate report"), [], ICON_SIZE_MEDIUM), - $webCodePath.'mySpace/company_reports.php' + $webCodePath.'my_space/company_reports.php' ); $actionsLeft .= Display::url( Display::return_icon( @@ -332,7 +332,7 @@ if ($export_csv) { $form = new FormValidator( 'search_user', 'get', - $webCodePath.'mySpace/users.php' + $webCodePath.'my_space/users.php' ); $form->addSelect( 'status', diff --git a/public/main/my_space/work_stats.php b/public/main/my_space/work_stats.php index 36fe32ec17..18a6693fa6 100644 --- a/public/main/my_space/work_stats.php +++ b/public/main/my_space/work_stats.php @@ -68,7 +68,7 @@ function get_users($from, $number_of_items, $column, $direction) null, false ); - $url = $webCodePath.'mySpace/myStudents.php'; + $url = $webCodePath.'my_space/myStudents.php'; $workList = getWorkListTeacher(0, 100, null, null, null); diff --git a/public/main/my_space/works_in_session_report.php b/public/main/my_space/works_in_session_report.php index 85e511801c..e34d018036 100644 --- a/public/main/my_space/works_in_session_report.php +++ b/public/main/my_space/works_in_session_report.php @@ -145,7 +145,7 @@ if (isset($_GET['export']) && $session && ($coursesInfo && $usersInfo)) { } $interbreadcrumb[] = [ - 'url' => api_get_path(WEB_CODE_PATH).'mySpace/index.php', + 'url' => api_get_path(WEB_CODE_PATH).'my_space/index.php', 'name' => get_lang('Reporting'), ]; diff --git a/public/main/search/load_search.php b/public/main/search/load_search.php index 57acc96f3b..48ed34bf40 100644 --- a/public/main/search/load_search.php +++ b/public/main/search/load_search.php @@ -1153,7 +1153,7 @@ if ($userToLoad) { $button .= '

'; $userReportButton = Display::url( get_lang('Diagnostic Validate LearningPath'), - api_get_path(WEB_CODE_PATH).'mySpace/myStudents.php?student='.$userToLoad, + api_get_path(WEB_CODE_PATH).'my_space/myStudents.php?student='.$userToLoad, ['class' => 'btn btn--primary'] ); } diff --git a/public/main/social/require_user_linking.php b/public/main/social/require_user_linking.php index 1ea8d11afa..eb6e573de4 100644 --- a/public/main/social/require_user_linking.php +++ b/public/main/social/require_user_linking.php @@ -85,7 +85,7 @@ $content .= '
'; return $content; diff --git a/public/plugin/dashboard/block_session/block_session.class.php b/public/plugin/dashboard/block_session/block_session.class.php index be2d359450..8b5795844a 100644 --- a/public/plugin/dashboard/block_session/block_session.class.php +++ b/public/plugin/dashboard/block_session/block_session.class.php @@ -130,7 +130,7 @@ class BlockSession extends Block } if (count($sessions) > 0) { - $content .= ''; + $content .= ''; } return $content; diff --git a/public/plugin/dashboard/block_student/block_student.class.php b/public/plugin/dashboard/block_student/block_student.class.php index 46180cf802..fc90c6aab3 100644 --- a/public/plugin/dashboard/block_student/block_student.class.php +++ b/public/plugin/dashboard/block_student/block_student.class.php @@ -135,7 +135,7 @@ class BlockStudent extends Block $content = $students_table; if (count($students) > 0) { - $content .= ''; + $content .= ''; } return $content; @@ -168,7 +168,7 @@ class BlockStudent extends Block if (!empty($results_faults_avg)) { $attendances_faults_avg = ''. + href="'.api_get_path(WEB_CODE_PATH).'my_space/myStudents.php?student='.$student_id.'">'. $results_faults_avg['faults'].'/'.$results_faults_avg['total'].' ('.$results_faults_avg['percent'].'%)'; } else { $attendances_faults_avg = '0%'; @@ -200,7 +200,7 @@ class BlockStudent extends Block } if (!empty($weight)) { - $evaluations_avg = ''.round($score, 2).'/'.round($weight, 2).'('.round($score / $weight * 100, 2).' %)'; + $evaluations_avg = ''.round($score, 2).'/'.round($weight, 2).'('.round($score / $weight * 100, 2).' %)'; } if (0 == $i % 2) { @@ -225,7 +225,7 @@ class BlockStudent extends Block if (count($students) > 0) { $content .= ''; } //$content .= '
'; diff --git a/public/plugin/dashboard/block_teacher/block_teacher.class.php b/public/plugin/dashboard/block_teacher/block_teacher.class.php index 1ee616e681..e9563ce6c4 100644 --- a/public/plugin/dashboard/block_teacher/block_teacher.class.php +++ b/public/plugin/dashboard/block_teacher/block_teacher.class.php @@ -125,7 +125,7 @@ class BlockTeacher extends Block if (count($teachers) > 0) { $content .= '
- '.get_lang('See more').'
'; + '.get_lang('See more').''; } return $content; @@ -179,7 +179,7 @@ class BlockTeacher extends Block } $content .= $teachers_table; if (count($teachers) > 0) { - $content .= '
'.get_lang('See more').'
'; + $content .= '
'.get_lang('See more').'
'; } return $content; diff --git a/tests/behat/features/accessCompanyReports.feature b/tests/behat/features/accessCompanyReports.feature index 45051b605d..5bd60b64fb 100644 --- a/tests/behat/features/accessCompanyReports.feature +++ b/tests/behat/features/accessCompanyReports.feature @@ -11,12 +11,12 @@ Feature: Access to portal reports as admin Scenario: Access the company report Given I am a platform administrator - And I am on "/main/mySpace/company_reports.php" + And I am on "/main/my_space/company_reports.php" Then I should not see "not authorized" Scenario: Access the resumed version of the company report Given I am a platform administrator - And I am on "/main/mySpace/company_reports_resumed.php" + And I am on "/main/my_space/company_reports_resumed.php" Then I should not see "not authorized" Scenario: See the company reports link on the admin page @@ -37,4 +37,4 @@ Feature: Access to portal reports as admin Scenario: See the company reports link on the admin page Given I am a platform administrator And I am on "/main/admin/teachers_time_by_session_report.php" - Then I should not see "not authorized" \ No newline at end of file + Then I should not see "not authorized" diff --git a/tests/behat/features/companyReports.feature b/tests/behat/features/companyReports.feature index 71f8704f23..dbd2990285 100644 --- a/tests/behat/features/companyReports.feature +++ b/tests/behat/features/companyReports.feature @@ -11,12 +11,12 @@ Feature: Access to portal reports as admin Scenario: Access the company report Given I am a platform administrator - And I am on "/main/mySpace/company_reports.php" + And I am on "/main/my_space/company_reports.php" Then I should not see "not authorized" Scenario: Access the resumed version of the company report Given I am a platform administrator - And I am on "/main/mySpace/company_reports_resumed.php" + And I am on "/main/my_space/company_reports_resumed.php" Then I should not see "not authorized" Scenario: See the company reports link on the admin page @@ -37,4 +37,4 @@ Feature: Access to portal reports as admin Scenario: See the company reports link on the admin page Given I am a platform administrator And I am on "/main/admin/teachers_time_by_session_report.php" - Then I should not see "not authorized" \ No newline at end of file + Then I should not see "not authorized" diff --git a/tests/behat/features/createUser.feature b/tests/behat/features/createUser.feature index 01f519696f..db3e55d43e 100644 --- a/tests/behat/features/createUser.feature +++ b/tests/behat/features/createUser.feature @@ -138,7 +138,7 @@ Feature: Users management as admin Scenario: HRM logs as teacher Given I am not logged Then I am logged as "hrm" - And I am on "/main/mySpace/teachers.php" + And I am on "/main/my_space/teachers.php" And wait the page to be loaded when ready Then I should see "teacher lastname" Then I follow "teacher lastname" @@ -150,7 +150,7 @@ Feature: Users management as admin Scenario: HRM logs as student Given I am not logged Then I am logged as "hrm" - And I am on "/main/mySpace/student.php" + And I am on "/main/my_space/student.php" And wait the page to be loaded when ready Then I should see "student lastname" Then I follow "student lastname" diff --git a/tests/scripts/fix_exercise_score_in_lp.php b/tests/scripts/fix_exercise_score_in_lp.php index 1b0dd2c6c2..14c61d7c26 100644 --- a/tests/scripts/fix_exercise_score_in_lp.php +++ b/tests/scripts/fix_exercise_score_in_lp.php @@ -45,7 +45,7 @@ if (!empty($items)) { $courseCode = $item['code']; $sessionId = $item['session_id']; - $url = api_get_path(WEB_CODE_PATH)."mySpace/myStudents.php?student=$userId&details=true&course=$courseCode&origin=&id_session=$sessionId"; + $url = api_get_path(WEB_CODE_PATH)."my_space/myStudents.php?student=$userId&details=true&course=$courseCode&origin=&id_session=$sessionId"; echo "Check user page: ". Display::url($url, $url); echo '
';