Fix UserGroup naming.

1.10.x
Julio Montoya 10 years ago
parent ec8742fb57
commit 1d6a2c7989
  1. 2
      main/admin/access_urls.php
  2. 5
      main/inc/lib/userportal.lib.php
  3. 6
      main/user/classes.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),

@ -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)) {

@ -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'));

Loading…
Cancel
Save