[LON-CAPA-cvs] cvs: loncom /interface lonhelper.pm

raeburn raeburn at source.lon-capa.org
Mon Nov 7 13:22:03 EST 2011


raeburn		Mon Nov  7 18:22:03 2011 EDT

  Modified files:              
    /loncom/interface	lonhelper.pm 
  Log:
  - use lonDocRoot perlvar in place of static string: '/home/httpd/html'.
  
  
Index: loncom/interface/lonhelper.pm
diff -u loncom/interface/lonhelper.pm:1.186 loncom/interface/lonhelper.pm:1.187
--- loncom/interface/lonhelper.pm:1.186	Sat Nov  5 22:42:14 2011
+++ loncom/interface/lonhelper.pm	Mon Nov  7 18:22:03 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # .helper XML handler to implement the LON-CAPA helper
 #
-# $Id: lonhelper.pm,v 1.186 2011/11/05 22:42:14 www Exp $
+# $Id: lonhelper.pm,v 1.187 2011/11/07 18:22:03 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -261,7 +261,7 @@
     my $uri = shift;
     if (!defined($uri)) { $uri = $r->uri(); }
     $env{'request.uri'} = $uri;
-    my $filename = '/home/httpd/html' . $uri;
+    my $filename = $r->dir_config('lonDocRoot').$uri;
     my $fh = Apache::File->new($filename);
     my $file;
     read $fh, $file, 100000000;




More information about the LON-CAPA-cvs mailing list