--- loncom/interface/lonaboutme.pm 2008/12/10 21:46:58 1.82 +++ loncom/interface/lonaboutme.pm 2008/12/15 16:37:44 1.85 @@ -1,7 +1,7 @@ # The LearningOnline Network # "About Me" Personal Information # -# $Id: lonaboutme.pm,v 1.82 2008/12/10 21:46:58 kaisler Exp $ +# $Id: lonaboutme.pm,v 1.85 2008/12/15 16:37:44 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -167,8 +167,8 @@ sub handler { if ($is_course) { if ($target ne 'tex') { - my @brcrum = [{href=>"/adm/navmaps",text=>"Navigate Course Contents"}, - {href=>"/adm/aboutme",text=>"Course Information"}]; + my $brcrum = [{href=>"/adm/navmaps",text=>"Navigate Course Contents"}, + {href=>"/adm/aboutme",text=>"Course Information"}]; my $start_page = &Apache::loncommon::start_page( "Course Information", @@ -176,7 +176,7 @@ sub handler { {'function' => $env{'forcestudent'}, 'domain' => $cdom, 'force_register' => $env{'forceregister'}, - bread_crumbs => @brcrum}); + 'bread_crumbs' => $brcrum}); $r->print($start_page); $r->print('

'.&mt('Group files').'

'); &print_portfiles_link($r,$is_course); @@ -293,15 +293,13 @@ my $image; } if ($allowed) { $r->print( - '
- -
'. '
'. '

'.&mt('Upload a Photo').'

'. ''. ''. ''. - '
'); + '
+'); } &Apache::lontemplate::start_columnSection($r); @@ -782,7 +780,8 @@ sub aboutme_access { $cdom = $coursehash{'domain'}; $cnum = $coursehash{'cnum'}; } - if ((&allowed('srm',$privcheck)) || (&allowed('dff',$privcheck))) { + if ((&Apache::lonnet::allowed('srm',$privcheck)) || + (&Apache::lonnet::allowed('dff',$privcheck))) { if (&in_course($uname,$udom,$cnum,$cdom)) { return 1; }