[LON-CAPA-cvs] cvs: loncom /auth lonauth.pm
raeburn
raeburn at source.lon-capa.org
Mon Nov 7 13:15:07 EST 2011
raeburn Mon Nov 7 18:15:07 2011 EDT
Modified files:
/loncom/auth lonauth.pm
Log:
- use lonDocRoot perlvar in place of static string: '/home/httpd/html'.
Index: loncom/auth/lonauth.pm
diff -u loncom/auth/lonauth.pm:1.119 loncom/auth/lonauth.pm:1.120
--- loncom/auth/lonauth.pm:1.119 Thu Sep 29 13:43:22 2011
+++ loncom/auth/lonauth.pm Mon Nov 7 18:15:07 2011
@@ -1,7 +1,7 @@
# The LearningOnline Network
# User Authentication Module
#
-# $Id: lonauth.pm,v 1.119 2011/09/29 13:43:22 raeburn Exp $
+# $Id: lonauth.pm,v 1.120 2011/11/07 18:15:07 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -195,9 +195,10 @@
sub handler {
my $r = shift;
+ my $londocroot = $r->dir_config('lonDocRoot');
my $form;
# Are we re-routing?
- if (-e '/home/httpd/html/lon-status/reroute.txt') {
+ if (-e "$londocroot/lon-status/reroute.txt") {
&reroute($r);
return OK;
}
More information about the LON-CAPA-cvs
mailing list