--- loncom/interface/lonmenu.pm 2011/10/03 14:30:03 1.315.2.13 +++ loncom/interface/lonmenu.pm 2012/03/02 14:48:19 1.315.2.15.2.1 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines to control the menu # -# $Id: lonmenu.pm,v 1.315.2.13 2011/10/03 14:30:03 raeburn Exp $ +# $Id: lonmenu.pm,v 1.315.2.15.2.1 2012/03/02 14:48:19 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -783,10 +783,13 @@ ENDREALRES } } if ($env{'request.uri'} =~ /^\/res/) { - my $icontext = &mt('Print'); - $menuitems .= (< 'Enter a specific section, or leave blank for no section.', avai => 'Available sections are:', youe => 'You entered an invalid section choice:', - plst => 'Please try again', + plst => 'Please try again.', role => 'The role you selected is not permitted to view the current page.', swit => 'Switch role, but display Main Menu page instead?', ); @@ -2234,9 +2237,9 @@ sub required_privs { '/adm/statistics' => 'vgr', }; unless ($env{'course.'.$env{'request.course.id'}.'.grading'} eq 'spreadsheet') { - $privs->{'/adm/classcalc'} => 'vgr', - $privs->{'/adm/assesscalc'} => 'vgr', - $privs->{'/adm/studentcalc'} => 'vgr'; + $privs->{'/adm/classcalc'} = 'vgr', + $privs->{'/adm/assesscalc'} = 'vgr', + $privs->{'/adm/studentcalc'} = 'vgr'; } return $privs; }