[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
albertel
lon-capa-cvs-allow@mail.lon-capa.org
Tue, 21 Aug 2007 23:34:39 -0000
albertel Tue Aug 21 19:34:39 2007 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- BUG#5375
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.906 loncom/lonnet/perl/lonnet.pm:1.907
--- loncom/lonnet/perl/lonnet.pm:1.906 Fri Aug 10 19:02:36 2007
+++ loncom/lonnet/perl/lonnet.pm Tue Aug 21 19:34:38 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.906 2007/08/10 23:02:36 albertel Exp $
+# $Id: lonnet.pm,v 1.907 2007/08/21 23:34:38 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -6839,12 +6839,15 @@
}
my ($map,$resid,$url)=&decode_symb($symb);
my $title='';
- my %bighash;
- if (tie(%bighash,'GDBM_File',$env{'request.course.fn'}.'.db',
- &GDBM_READER(),0640)) {
- my $mapid=$bighash{'map_pc_'.&clutter($map)};
- $title=$bighash{'title_'.$mapid.'.'.$resid};
- untie %bighash;
+ if (!$map && $resid == 0 && $url =~/default\.sequence$/) {
+ $title = $env{'course.'.$env{'request.course.id'}.'.description'};
+ } else {
+ if (tie(my %bighash,'GDBM_File',$env{'request.course.fn'}.'.db',
+ &GDBM_READER(),0640)) {
+ my $mapid=$bighash{'map_pc_'.&clutter($map)};
+ $title=$bighash{'title_'.$mapid.'.'.$resid};
+ untie(%bighash);
+ }
}
$title=~s/\&colon\;/\:/gs;
if ($title) {