[LON-CAPA-cvs] cvs: loncom(version_1_0_0) /interface londropadd.pm

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 25 Aug 2003 16:36:58 -0000


albertel		Mon Aug 25 12:36:58 2003 EDT

  Modified files:              (Branch: version_1_0_0)
    /loncom/interface	londropadd.pm 
  Log:
  - backport 1.83
  
  
Index: loncom/interface/londropadd.pm
diff -u loncom/interface/londropadd.pm:1.80 loncom/interface/londropadd.pm:1.80.2.1
--- loncom/interface/londropadd.pm:1.80	Tue Jul 29 16:00:56 2003
+++ loncom/interface/londropadd.pm	Mon Aug 25 12:36:58 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to drop and add students in courses 
 #
-# $Id: londropadd.pm,v 1.80 2003/07/29 20:00:56 matthew Exp $
+# $Id: londropadd.pm,v 1.80.2.1 2003/08/25 16:36:58 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -518,7 +518,7 @@
     my $distotal=$total+1;
     my $today=time;
     my $halfyear=$today+15552000;
-    my $defdom=$r->dir_config('lonDefDomain');
+    my $defdom=$ENV{'request.role.domain'};
     my ($krbdef,$krbdefdom) =
         &Apache::loncommon::get_kerberos_defaults($defdom);
     &print_upload_manager_header($r,$datatoken,$distotal,$krbdefdom);
@@ -720,7 +720,7 @@
 sub get_student_username_domain_form {
     my $r = shift;
     my $domform = &Apache::loncommon::select_dom_form
-        ($r->dir_config('lonDefDomain'),'cudomain',0);
+        ($ENV{'request.role.domain'},'cudomain',0);
     $r->print(<<END);
 <input type="hidden" name="action" value="enrollstudent" />
 <input type="hidden" name="state"  value="gotusername" />
@@ -756,7 +756,7 @@
     my $user_data_html = '';
     my $javascript_validations = '';
     if ($new_user) {
-        my $defdom=$r->dir_config('lonDefDomain');
+        my $defdom=$ENV{'request.role.domain'};
         # Set up authentication forms
         my ($krbdef,$krbdefdom) =
             &Apache::loncommon::get_kerberos_defaults($domain);