diff --git a/main/inc/lib/course.lib.php b/main/inc/lib/course.lib.php
index 2a29ae641b..b45dd4dacb 100755
--- a/main/inc/lib/course.lib.php
+++ b/main/inc/lib/course.lib.php
@@ -2618,7 +2618,7 @@ class CourseManager {
$all_user_categories = get_user_course_categories();
// Step 0: We display the course without a user category.
- display_courses_in_category(0, 'true');
+ self :: display_courses_in_category(0, 'true');
// Step 1: We get all the categories of the user.
$tucc = Database::get_user_personal_table(TABLE_USER_COURSE_CATEGORY);
@@ -2635,7 +2635,7 @@ class CourseManager {
echo $row['title'];
echo '';
echo '';
- display_courses_in_category($row['id']);
+ self :: display_courses_in_category($row['id']);
echo '';
echo '';
}
diff --git a/main/inc/lib/display.lib.php b/main/inc/lib/display.lib.php
index 4b26f1e691..10cc8a72b9 100755
--- a/main/inc/lib/display.lib.php
+++ b/main/inc/lib/display.lib.php
@@ -935,5 +935,42 @@ class Display {
}
}); */
}
+ /**
+ * Display create course link
+ *
+ */
+ function display_create_course_link() {
+ echo '
'.(api_get_setting('course_validation') == 'true' ? get_lang('CreateCourseRequest') : get_lang('CourseCreate')).'';
+ }
+
+ /**
+ * Display dashboard link
+ *
+ */
+ function display_dashboard_link() {
+ echo ''.get_lang('Dashboard').'';
+ }
+
+ /**
+ * Display edit course list links
+ *
+ */
+ function display_edit_course_list_links() {
+ echo ''.get_lang('CourseManagement').'';
+ }
+
+ /**
+ * Show history sessions
+ *
+ */
+ function display_history_course_session() {
+ if (api_get_setting('use_session_mode') == 'true') {
+ if (isset($_GET['history']) && intval($_GET['history']) == 1) {
+ echo ''.get_lang('DisplayTrainingList').'';
+ } else {
+ echo ''.get_lang('HistoryTrainingSessions').'';
+ }
+ }
+ }
} //end class Display
\ No newline at end of file
diff --git a/user_portal.php b/user_portal.php
index 63bc6a46dc..dabae3ad52 100755
--- a/user_portal.php
+++ b/user_portal.php
@@ -153,9 +153,6 @@ Display :: display_header($nameTools);
/*
FUNCTIONS
- display_admin_links()
- display_create_course_link()
- display_edit_course_list_links()
display_digest($toolsList, $digest, $orderKey, $courses)
show_notification($my_course)
@@ -163,54 +160,6 @@ Display :: display_header($nameTools);
get_user_course_categories()
*/
-/**
- * Warning: This function defines a global variable.
- * @todo Use the correct get_path function.
- */
-function display_admin_links() {
- global $rootAdminWeb;
- echo ''.get_lang('PlatformAdmin').'';
-}
-
-/**
- * Display create course link
- *
- */
-function display_create_course_link() {
- echo ''.(api_get_setting('course_validation') == 'true' ? get_lang('CreateCourseRequest') : get_lang('CourseCreate')).'';
-}
-
-
-/**
- * Display dashboard link
- *
- */
-function display_dashboard_link() {
- echo ''.get_lang('Dashboard').'';
-}
-
-/**
- * Display edit course list links
- *
- */
-function display_edit_course_list_links() {
- echo ''.get_lang('CourseManagement').'';
-}
-
-/**
- * Show history sessions
- *
- */
-function display_history_course_session() {
- if (api_get_setting('use_session_mode') == 'true') {
- if (isset($_GET['history']) && intval($_GET['history']) == 1) {
- echo ''.get_lang('DisplayTrainingList').'';
- } else {
- echo ''.get_lang('HistoryTrainingSessions').'';
- }
- }
-}
-
/**
* Displays a digest e.g. short summary of new agenda and announcements items.
* This used to be displayed in the right hand menu, but is now
@@ -1277,14 +1226,14 @@ echo '';
if ($show_menu) {
echo '