version 1.253, 2009/12/03 02:13:28
|
version 1.253.2.1, 2009/12/07 17:30:01
|
Line 1378 returns: nothing
|
Line 1378 returns: nothing
|
# The first one should be the course or a menu link |
# The first one should be the course or a menu link |
if (!defined($menulink)) { $menulink=1; } |
if (!defined($menulink)) { $menulink=1; } |
if ($menulink) { |
if ($menulink) { |
my $description = 'Menu'; |
unless ($menulink eq '_nomenu') { |
my $no_mt_descr = 0; |
my $description = 'Menu'; |
if (exists($env{'request.course.id'}) && |
my $no_mt_descr = 0; |
$env{'request.course.id'} ne '') { |
$menulink = { href =>'/adm/menu', |
$description = |
title =>'Go to main menu', |
$env{'course.'.$env{'request.course.id'}.'.description'}; |
target =>'_top', |
$no_mt_descr = 1; |
text =>$description, |
|
no_mt =>$no_mt_descr, }; |
} |
} |
$menulink = { href =>'/adm/menu', |
|
title =>'Go to main menu', |
|
target =>'_top', |
|
text =>$description, |
|
no_mt =>$no_mt_descr, }; |
|
if($last) { |
if($last) { |
#$last set, so we have some crumbs |
#$last set, so we have some crumbs |
unshift(@Crumbs,$menulink); |
unshift(@Crumbs,$menulink); |