[LON-CAPA-cvs] cvs: loncom /interface lonmenu.pm
raeburn
raeburn@source.lon-capa.org
Sat, 17 Oct 2009 01:04:57 -0000
raeburn Sat Oct 17 01:04:57 2009 EDT
Modified files:
/loncom/interface lonmenu.pm
Log:
- Need the zeroth element of the array of arrays.
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.291 loncom/interface/lonmenu.pm:1.292
--- loncom/interface/lonmenu.pm:1.291 Fri Oct 16 23:35:08 2009
+++ loncom/interface/lonmenu.pm Sat Oct 17 01:04:56 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.291 2009/10/16 23:35:08 raeburn Exp $
+# $Id: lonmenu.pm,v 1.292 2009/10/17 01:04:56 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -185,7 +185,7 @@
} else {
if (ref($menuitem) eq 'ARRAY') {
my @items = @{$menuitem};
- $items[0] = 'javascript:'.$menuitem;
+ $items[0] = 'javascript:'.$menuitem->[0].';';
$menu .= &prep_menuitem(\@items);
}
}