[svn r12699] do not display "learning path" in breadcrumb when it's accessed from course homepage and when learning path tool is hidden (qui complex I admit)

skala
Eric Marguin 18 years ago
parent 0db812dc17
commit 69ae1ecfac
  1. 6
      main/newscorm/lp_header.php

@ -54,11 +54,7 @@ if($show_link)
{
$interbreadcrumb[]= array ("url"=>"./lp_controller.php?action=list", "name"=> get_lang(ucfirst(TOOL_LEARNPATH)));
}
else //if the tool is hidden and the user has no edit permissions, make the breadcrumb link point to the course homepage
{
$web_course_path = api_get_path(WEB_COURSE_PATH);
$interbreadcrumb[]= array ("url"=>$web_course_path.$_course['path'].'/index.php', "name"=> get_lang(ucfirst(TOOL_LEARNPATH)));
}
// else we don't display get_lang(ucfirst(TOOL_LEARNPATH)) in the breadcrumb since the learner accessed it directly from the course homepage
$interbreadcrumb[] = array("url"=>"./lp_controller.php?action=view&lp_id=".$path_id,'name'=>$path_name);
$noPHP_SELF = true;
Display::display_header($nameTools,"Path", null);

Loading…
Cancel
Save