Diff for /loncom/interface/lonuserutils.pm between versions 1.97.2.17 and 1.97.2.19

version 1.97.2.17, 2010/05/22 13:33:09 version 1.97.2.19, 2010/11/01 13:46:36
Line 47  sub modifystudent { Line 47  sub modifystudent {
     # this one.  If $csec is defined, drop them from all other sections of      # this one.  If $csec is defined, drop them from all other sections of
     # this course and add them to section $csec      # this course and add them to section $csec
     my ($cnum,$cdom) = &get_course_identity($courseid);      my ($cnum,$cdom) = &get_course_identity($courseid);
     my %roles = &Apache::lonnet::dump('roles',$udom,$unam);      my $extra = &Apache::lonnet::freeze_escape({'skipcheck' => 1});
       my %roles = &Apache::lonnet::dump('roles',$udom,$unam,'.',undef,$extra);
     my ($tmp) = keys(%roles);      my ($tmp) = keys(%roles);
     # Bail out if we were unable to get the students roles      # Bail out if we were unable to get the students roles
     return "$1" if ($tmp =~ /^(con_lost|error|no_such_host)/i);      return "$1" if ($tmp =~ /^(con_lost|error|no_such_host)/i);
Line 4677  sub update_user_list { Line 4678  sub update_user_list {
                }                 }
             } elsif ($choice eq 'chgdates') {              } elsif ($choice eq 'chgdates') {
                 $r->print(&mt("$result_text{'ok'}{$choice} role of '[_1]' in [_2] for '[_3]' - [_4]",$plrole,$extent,                  $r->print(&mt("$result_text{'ok'}{$choice} role of '[_1]' in [_2] for '[_3]' - [_4]",$plrole,$extent,
                       '<i>'.&Apache::loncommon::plainname($uname.':'.$udom).'</i>',                        '<i>'.&Apache::loncommon::plainname($uname,$udom).'</i>',
                       $dates).'<br />');                        $dates).'<br />');
                $count ++;                 $count ++;
             } else {              } else {
                 $r->print(&mt("$result_text{'ok'}{$choice} role of '[_1]' in [_2] for '[_3]'.",$plrole,$extent,                  $r->print(&mt("$result_text{'ok'}{$choice} role of '[_1]' in [_2] for '[_3]'.",$plrole,$extent,
                       '<i>'.&Apache::loncommon::plainname($uname.':'.$udom).'</i>').                        '<i>'.&Apache::loncommon::plainname($uname,$udom).'</i>').
                           '<br />');                            '<br />');
                 $count ++;                  $count ++;
             }              }
Line 4690  sub update_user_list { Line 4691  sub update_user_list {
             $r->print(              $r->print(
                 &mt("Error $result_text{'error'}{$choice} [_1] in [_2] for '[_3]': [_4].",                  &mt("Error $result_text{'error'}{$choice} [_1] in [_2] for '[_3]': [_4].",
                     $plrole,$extent,                      $plrole,$extent,
                     '<i>'.&Apache::loncommon::plainname($uname.':'.$udom).'</i>',                      '<i>'.&Apache::loncommon::plainname($uname,$udom).'</i>',
                     $result).'<br />');                      $result).'<br />');
         }          }
     }      }

Removed from v.1.97.2.17  
changed lines
  Added in v.1.97.2.19


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