version 1.252, 2009/12/01 18:07:50
|
version 1.253.2.1, 2009/12/07 17:30:01
|
Line 72 sub coursepreflink {
|
Line 72 sub coursepreflink {
|
} |
} |
} |
} |
|
|
|
sub raw_href_to_link { |
|
my ($message)=@_; |
|
$message=~s/(https?\:\/\/[^\s\'\"]+)(\s|$)/<a href="$1"><tt>$1<\/tt><\/a>$2/gi; |
|
return $message; |
|
} |
|
|
############################################## |
############################################## |
############################################## |
############################################## |
|
|
Line 1372 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); |