Always showing the session box in the platform settings because we are moving the old classes code to the new usergroup code see #4071

skala
Julio Montoya 13 years ago
parent 40e76a7a67
commit a9124ed4f3
  1. 12
      main/admin/index.php

@ -176,7 +176,8 @@ if (api_is_platform_admin()) {
/* Sessions */
if (api_get_setting('use_session_mode') == 'true') {
//if (api_get_setting('use_session_mode') == 'true') {
if (true) {
$blocks['sessions']['icon'] = Display::return_icon('session.png', get_lang('Sessions'), array(), ICON_SIZE_SMALL, false);
$blocks['sessions']['label'] = api_ucfirst(get_lang('Sessions'));
@ -203,6 +204,7 @@ if (api_get_setting('use_session_mode') == 'true') {
}
$items[] = array('url'=>'career_dashboard.php', 'label' => get_lang('CareersAndPromotions'));
}
$items[] = array('url'=>'usergroups.php', 'label' => get_lang('Classes'));
$blocks['sessions']['items'] = $items;
@ -210,7 +212,7 @@ if (api_get_setting('use_session_mode') == 'true') {
} elseif (api_is_platform_admin()) {
$blocks['classes']['items'] = $items;
/*$blocks['classes']['items'] = $items;
$blocks['classes']['icon'] = Display::return_icon('group.gif', get_lang('AdminClasses'), array(), ICON_SIZE_SMALL, false);
$blocks['classes']['label'] = api_ucfirst(get_lang('AdminClasses'));
@ -224,10 +226,12 @@ if (api_get_setting('use_session_mode') == 'true') {
$items[] = array('url'=>'class_add.php', 'label' => get_lang('AddClasses'));
$items[] = array('url'=>'class_import.php', 'label' => get_lang('ImportClassListCSV'));
$items[] = array('url'=>'class_user_import.php', 'label' => get_lang('AddUsersToAClass'));
$items[] = array('url'=>'subscribe_class2course.php', 'label' => get_lang('AddClassesToACourse'));
$items[] = array('url'=>'subscribe_class2course.php', 'label' => get_lang('AddClassesToACourse'));
$items[] = array('url'=>'usergroups.php', 'label' => get_lang('Classes'));
$blocks['classes']['items'] = $items;
$blocks['classes']['extra'] = null;
$blocks['classes']['extra'] = null;*/
}

Loading…
Cancel
Save