[LON-CAPA-cvs] cvs: loncom /xml lonxml.pm

raeburn raeburn at source.lon-capa.org
Thu Dec 6 08:54:47 EST 2012


raeburn		Thu Dec  6 13:54:47 2012 EDT

  Modified files:              
    /loncom/xml	lonxml.pm 
  Log:
  - "Return to Last Location icon/link" needs to be available after pusing "Edit" 
    for published HTML or other text file in course context.
  
  
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.535 loncom/xml/lonxml.pm:1.536
--- loncom/xml/lonxml.pm:1.535	Fri Nov 30 11:45:57 2012
+++ loncom/xml/lonxml.pm	Thu Dec  6 13:54:47 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # XML Parser Module 
 #
-# $Id: lonxml.pm,v 1.535 2012/11/30 11:45:57 foxr Exp $
+# $Id: lonxml.pm,v 1.536 2012/12/06 13:54:47 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1667,8 +1667,10 @@
     my ($filetype,$breadcrumbtext);
     if ($file =~ /\.(sty|css|js|txt|tex)$/) {
 	$filetype=$1;
+        $env{'request.uri'}=$request->uri;
     } else {
 	$filetype='html';
+        $env{'request.uri'}=$request->uri;
     }
     if ($filetype eq 'sty') {
         $breadcrumbtext = 'Style File Editor';




More information about the LON-CAPA-cvs mailing list