Diff for /loncom/interface/lonaboutme.pm between versions 1.161.2.1 and 1.162

version 1.161.2.1, 2024/07/03 23:49:50 version 1.162, 2022/10/27 20:33:31
Line 84  use Apache::lonlocal; Line 84  use Apache::lonlocal;
 use Apache::lonmsgdisplay();  use Apache::lonmsgdisplay();
 use Apache::lontemplate;  use Apache::lontemplate;
 use Apache::longroup;  use Apache::longroup;
   use Apache::lonhtmlcommon();
 use HTML::Entities();  use HTML::Entities();
 use Image::Magick;  use Image::Magick;
   
Line 112  sub handler { Line 113  sub handler {
     my $candisplay = 1;      my $candisplay = 1;
     if (!$is_course) {      if (!$is_course) {
         if ($action ne 'portfolio') {          if ($action ne 'portfolio') {
             if (($env{'user.name'} eq $cnum) && ($env{'user.domain'} eq $cdom)) {              $candisplay = &Apache::lonnet::usertools_access($cnum,$cdom,'aboutme');
                 $candisplay = &Apache::lonnet::usertools_access($cnum,$cdom,'aboutme');  
             } else {  
                 $candisplay = &Apache::loncommon::aboutme_on($cnum,$cdom);  
             }  
             if ((!$candisplay) && ($env{'request.course.id'})) {              if ((!$candisplay) && ($env{'request.course.id'})) {
                 $candisplay = &aboutme_access($cnum,$cdom);                  $candisplay = &aboutme_access($cnum,$cdom);
             }              }
Line 226  sub handler { Line 223  sub handler {
             $args->{'no_nav_bar'} = 1;              $args->{'no_nav_bar'} = 1;
         } elsif (!$env{'form.register'}) { #Don't show breadcrumbs twice, when this page is part of course content and you call it          } elsif (!$env{'form.register'}) { #Don't show breadcrumbs twice, when this page is part of course content and you call it
             if (($env{'request.course.id'}) &&              if (($env{'request.course.id'}) &&
                  ($env{'form.folderpath'} =~ /^supplemental/)) {                  ($env{'form.folderpath'} =~ /^supplemental/)) {
                   &Apache::loncommon::validate_folderpath(1,'',$coursenum,$coursedomain);
                 my $crstype = &Apache::loncommon::course_type();                  my $crstype = &Apache::loncommon::course_type();
                 my $title = $env{'form.title'};                  my $title = $env{'form.title'};
                 if ($title eq '') {                  if ($title eq '') {

Removed from v.1.161.2.1  
changed lines
  Added in v.1.162


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>