[LON-CAPA-cvs] cvs: rat / lonratedt.pm

raeburn raeburn at source.lon-capa.org
Sun Oct 30 21:23:26 EDT 2011


raeburn		Mon Oct 31 01:23:26 2011 EDT

  Modified files:              
    /rat	lonratedt.pm 
  Log:
  - use lonDocRoot perlvar in place of static string: '/home/httpd/html'.
  
  
Index: rat/lonratedt.pm
diff -u rat/lonratedt.pm:1.102 rat/lonratedt.pm:1.103
--- rat/lonratedt.pm:1.102	Mon Oct 24 12:06:03 2011
+++ rat/lonratedt.pm	Mon Oct 31 01:23:26 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Edit Handler for RAT Maps
 #
-# $Id: lonratedt.pm,v 1.102 2011/10/24 12:06:03 www Exp $
+# $Id: lonratedt.pm,v 1.103 2011/10/31 01:23:26 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -645,7 +645,8 @@
 # ----------------------------------------------------------------- No such dir
 sub nodir {
    my ($r,$dir)=@_;
-   $dir=~s{^/home/httpd/html/priv/[^/]+/[^/]+}{};
+   my $londocroot = $r->dir_config('lonDocRoot');
+   $dir=~s{^\Q$londocroot/priv/\E[^/]+/[^/]+}{};
    my $brcrum = [{'href' => &Apache::loncommon::authorspace(),
                   'text' => 'Construction Space'}];
 #                 {'href' => '',




More information about the LON-CAPA-cvs mailing list