--- loncom/interface/Attic/londropadd.pm 2006/12/21 20:05:20 1.153 +++ loncom/interface/Attic/londropadd.pm 2007/03/03 01:33:21 1.156 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to drop and add students in courses # -# $Id: londropadd.pm,v 1.153 2006/12/21 20:05:20 raeburn Exp $ +# $Id: londropadd.pm,v 1.156 2007/03/03 01:33:21 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -106,7 +106,7 @@ sub domain_form { # Set up domain and server selection forms # # Get the domains - my @domains = &Apache::loncommon::get_domains(); + my @domains = &Apache::lonnet::all_domains(); # build up the menu information to be passed to # &Apache::loncommon::linked_select_forms my %select_menus; @@ -822,6 +822,7 @@ sub enroll_single_student { } else { $r->print(&mt('Invalid username or domain')); } + $r->print("

".&mt("Enroll another student")."

"); } sub setup_date_selectors { @@ -2204,7 +2205,7 @@ sub upfile_drop_add { $amode = ''; # This causes the loop below to be skipped } } - if ( $domain eq &clean_domain($domain) + if ( $domain eq &LONCAPA::clean_domain($domain) && ($amode ne '')) { ####################################### ## Enroll Students ##