Fix breacrumb in agenda list - refs BT#13251

pull/2487/head
Angel Fernando Quiroz Campos 7 years ago
parent fdfb086ae6
commit b1128f26d5
  1. 14
      main/calendar/agenda_list.php

@ -13,6 +13,20 @@ $interbreadcrumb[] = array(
);
$currentCourseId = api_get_course_int_id();
$currentGroupdId = api_get_group_id();
if (!empty($currentGroupdId)) {
$groupProperties = GroupManager::get_group_properties($currentGroupdId);
$interbreadcrumb[] = array(
"url" => api_get_path(WEB_CODE_PATH)."group/group.php?".api_get_cidreq(),
"name" => get_lang('Groups')
);
$interbreadcrumb[] = array(
"url" => api_get_path(WEB_CODE_PATH)."group/group_space.php?".api_get_cidreq(),
"name" => get_lang('GroupSpace').' '.$groupProperties['name']
);
}
$type = isset($_REQUEST['type']) ? $_REQUEST['type'] : null;
$agenda = new Agenda($type);
$events = $agenda->getEvents(

Loading…
Cancel
Save