[LON-CAPA-cvs] cvs: loncom /auth lonlogin.pm

raeburn raeburn at source.lon-capa.org
Mon Nov 7 13:16:10 EST 2011


raeburn		Mon Nov  7 18:16:10 2011 EDT

  Modified files:              
    /loncom/auth	lonlogin.pm 
  Log:
  - use lonDocRoot perlvar in place of static string: '/home/httpd/html'.
  
  
Index: loncom/auth/lonlogin.pm
diff -u loncom/auth/lonlogin.pm:1.148 loncom/auth/lonlogin.pm:1.149
--- loncom/auth/lonlogin.pm:1.148	Sat Jun 11 18:21:07 2011
+++ loncom/auth/lonlogin.pm	Mon Nov  7 18:16:10 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Login Screen
 #
-# $Id: lonlogin.pm,v 1.148 2011/06/11 18:21:07 raeburn Exp $
+# $Id: lonlogin.pm,v 1.149 2011/11/07 18:16:10 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -64,7 +64,8 @@
 
 
 # Are we re-routing?
-    if (-e '/home/httpd/html/lon-status/reroute.txt') {
+    my $londocroot = $r->dir_config('lonDocRoot'); 
+    if (-e "$londocroot/lon-status/reroute.txt") {
 	&Apache::lonauth::reroute($r);
 	return OK;
     }




More information about the LON-CAPA-cvs mailing list