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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 22 Jul 2003 19:39:58 -0000


albertel		Tue Jul 22 15:39:58 2003 EDT

  Modified files:              
    /loncom/interface	londocs.pm 
  Log:
  - Grr, I really wish we could use ssi for this.
  - Fixes BUG#1893, realtive style/imports etc should work okay when verifying resources
  
  
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.68 loncom/interface/londocs.pm:1.69
--- loncom/interface/londocs.pm:1.68	Fri Jul 18 10:31:43 2003
+++ loncom/interface/londocs.pm	Tue Jul 22 15:39:58 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.68 2003/07/18 14:31:43 bowersj2 Exp $
+# $Id: londocs.pm,v 1.69 2003/07/22 19:39:58 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -329,9 +329,12 @@
                      $r->print(' ');
                  }
                  $r->print('- Rendering: ');
+                 my $oldpath=$ENV{'request.filename'};
+                 $ENV{'request.filename'}=&Apache::lonnet::filelocation('',$url);
                  &Apache::lonxml::xmlparse($r,'web',
                    &Apache::lonnet::getfile(
                     &Apache::lonnet::filelocation('',$url)));
+		 $ENV{'request.filename'}=$oldpath;
                  if (($Apache::lonxml::errorcount) ||
                      ($Apache::lonxml::warningcount)) {
 		     if ($Apache::lonxml::errorcount) {