From 1d6a2c7989dc82ce5e746fad6c3015e41c97e9ef Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Tue, 3 Mar 2015 08:13:49 +0100 Subject: [PATCH] Fix UserGroup naming. --- main/admin/access_urls.php | 2 +- main/inc/lib/userportal.lib.php | 5 +++-- main/user/classes.php | 6 ++---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/main/admin/access_urls.php b/main/admin/access_urls.php index c8f272a350..473fc028bb 100755 --- a/main/admin/access_urls.php +++ b/main/admin/access_urls.php @@ -107,7 +107,7 @@ echo Display::url(Display::return_icon('user.png', get_lang('ManageUsers'), echo Display::url(Display::return_icon('course.png', get_lang('ManageCourses'), array(), ICON_SIZE_MEDIUM), api_get_path(WEB_CODE_PATH).'admin/access_url_edit_courses_to_url.php'); //echo Display::url(Display::return_icon('session.png', get_lang('ManageSessions'), array(), ICON_SIZE_MEDIUM), api_get_path(WEB_CODE_PATH).'admin/access_url_edit_sessions_to_url.php'); -$userGroup = new Usergroup(); +$userGroup = new UserGroup(); if ($userGroup->getUseMultipleUrl()) { echo Display::url( Display::return_icon('class.png', get_lang('ManageUserGroup'), array(), ICON_SIZE_MEDIUM), diff --git a/main/inc/lib/userportal.lib.php b/main/inc/lib/userportal.lib.php index 83a79f951e..5483a5a723 100755 --- a/main/inc/lib/userportal.lib.php +++ b/main/inc/lib/userportal.lib.php @@ -769,10 +769,11 @@ class IndexManager return $html; } - function return_classes_block() { + function return_classes_block() + { $html = ''; if (api_get_setting('show_groups_to_users') == 'true') { - $usergroup = new Usergroup(); + $usergroup = new UserGroup(); $usergroup_list = $usergroup->get_usergroup_by_user(api_get_user_id()); $classes = ''; if (!empty($usergroup_list)) { diff --git a/main/user/classes.php b/main/user/classes.php index acd8336b83..d70811a2ff 100755 --- a/main/user/classes.php +++ b/main/user/classes.php @@ -24,14 +24,12 @@ if (isset($_GET['id'])) { } if (api_get_setting('show_groups_to_users') == 'false') { - -} - +} Display :: display_header($tool_name, 'Classes'); -$usergroup = new Usergroup(); +$usergroup = new UserGroup(); $usergroup_list = $usergroup->get_usergroup_by_user(api_get_user_id()); if (!empty($usergroup_list)) { echo Display::tag('h1',get_lang('MyClasses'));