[LON-CAPA-cvs] cvs: loncom /interface lonhtmlcommon.pm
raeburn
raeburn@source.lon-capa.org
Mon, 15 Mar 2010 05:37:47 -0000
raeburn Mon Mar 15 05:37:47 2010 EDT
Modified files:
/loncom/interface lonhtmlcommon.pm
Log:
- First breadcrumb item is a course or a menu link.
- default to menu link if course has no description.
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.268 loncom/interface/lonhtmlcommon.pm:1.269
--- loncom/interface/lonhtmlcommon.pm:1.268 Thu Mar 11 12:15:19 2010
+++ loncom/interface/lonhtmlcommon.pm Mon Mar 15 05:37:47 2010
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common html routines
#
-# $Id: lonhtmlcommon.pm,v 1.268 2010/03/11 12:15:19 wenzelju Exp $
+# $Id: lonhtmlcommon.pm,v 1.269 2010/03/15 05:37:47 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1438,8 +1438,9 @@
if ($menulink) {
my $description = 'Menu';
my $no_mt_descr = 0;
- if (exists($env{'request.course.id'}) &&
- $env{'request.course.id'} ne '') {
+ if ((exists($env{'request.course.id'})) &&
+ ($env{'request.course.id'} ne '') &&
+ ($env{'course.'.$env{'request.course.id'}.'.description'} ne '')) {
$description =
$env{'course.'.$env{'request.course.id'}.'.description'};
$no_mt_descr = 1;