Fix bug My agenda breadcrumb url - refs CT#7396

1.9.x
Daniel Barreto 11 years ago
parent 9797743131
commit 7569b72d22
  1. 8
      main/calendar/agenda_js.php
  2. 2
      main/calendar/agenda_list.php

@ -41,7 +41,13 @@ if (api_is_platform_admin() && ($type == 'admin' || $type == 'platform')) {
}
if (isset($_REQUEST['cidReq']) && !empty($_REQUEST['cidReq'])) {
$type = 'course';
if ($_REQUEST['cidReq'] < 1) {
// When is out of the course tool (e.g My agenda)
header('Location: ' . api_get_self());
exit;
} else {
$type = 'course';
}
}
$agenda = new Agenda();

@ -14,7 +14,7 @@ require_once 'agenda.lib.php';
require_once 'agenda.inc.php';
$interbreadcrumb[] = array(
'url' => api_get_path(WEB_CODE_PATH)."calendar/agenda_js.php?".api_get_cidreq(),
'url' => api_get_path(WEB_CODE_PATH) . "calendar/agenda_js.php",
'name' => get_lang('Agenda')
);

Loading…
Cancel
Save