Diff for /loncom/interface/loncommon.pm between versions 1.1372 and 1.1373

version 1.1372, 2021/11/30 15:55:37 version 1.1373, 2021/12/24 00:48:30
Line 5270  sub blockcheck { Line 5270  sub blockcheck {
                 }                  }
             }              }
         }          }
           if (($activity eq 'wishlist') || ($activity eq 'annotate')) {
               return ();
           }
     }      }
     if (defined($udom) && defined($uname)) {      if (defined($udom) && defined($uname)) {
         # If uname and udom are for a course, check for blocks in the course.          # If uname and udom are for a course, check for blocks in the course.
Line 5286  sub blockcheck { Line 5289  sub blockcheck {
     my $startblock = 0;      my $startblock = 0;
     my $endblock = 0;      my $endblock = 0;
     my $triggerblock = '';      my $triggerblock = '';
     my %live_courses = &findallcourses(undef,$uname,$udom);      my %live_courses;
       unless (($activity eq 'wishlist') || ($activity eq 'annotate')) {
           %live_courses = &findallcourses(undef,$uname,$udom);
       }
   
     # If uname is for a user, and activity is course-specific, i.e.,      # If uname is for a user, and activity is course-specific, i.e.,
     # boards, chat or groups, check for blocking in current course only.      # boards, chat or groups, check for blocking in current course only.
Line 5635  END_MYBLOCK Line 5641  END_MYBLOCK
         $text = &mt('Checking Course Update Blocked');          $text = &mt('Checking Course Update Blocked');
     } elsif ($activity eq 'about') {      } elsif ($activity eq 'about') {
         $text = &mt('Access to User Information Pages Blocked');          $text = &mt('Access to User Information Pages Blocked');
       } elsif ($activity eq 'wishlist') {
           $text = &mt('Access to Stored Links Blocked');
       } elsif ($activity eq 'annotate') {
           $text = &mt('Access to Annotations Blocked');
     }      }
     $output .= <<"END_BLOCK";      $output .= <<"END_BLOCK";
 <div class='$class'>  <div class='$class'>

Removed from v.1.1372  
changed lines
  Added in v.1.1373


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