version 1.253.2.1, 2009/12/07 17:30:01
|
version 1.253.2.2, 2009/12/08 05:19:08
|
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) { |
unless ($menulink eq '_nomenu') { |
if ($menulink eq '_nomenu') { |
|
return unless($last); |
|
} else { |
my $description = 'Menu'; |
my $description = 'Menu'; |
my $no_mt_descr = 0; |
my $no_mt_descr = 0; |
$menulink = { href =>'/adm/menu', |
$menulink = { href =>'/adm/menu', |
Line 1386 returns: nothing
|
Line 1388 returns: nothing
|
target =>'_top', |
target =>'_top', |
text =>$description, |
text =>$description, |
no_mt =>$no_mt_descr, }; |
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); |
} else { |
} else { |
#only menulink crumb present |
#only menulink crumb present |
$last = $menulink; |
$last = $menulink; |
} |
} |
} |
} |
} |
my $links = join "", |
my $links = join "", |