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

www lon-capa-cvs@mail.lon-capa.org
Fri, 14 Jun 2002 19:56:57 -0000


www		Fri Jun 14 15:56:57 2002 EDT

  Modified files:              
    /loncom/xml	lonxml.pm 
  Log:
  Display title of edited file :-)
  
  
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.176 loncom/xml/lonxml.pm:1.177
--- loncom/xml/lonxml.pm:1.176	Mon Jun  3 17:07:20 2002
+++ loncom/xml/lonxml.pm	Fri Jun 14 15:56:57 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # XML Parser Module 
 #
-# $Id: lonxml.pm,v 1.176 2002/06/03 21:07:20 www Exp $
+# $Id: lonxml.pm,v 1.177 2002/06/14 19:56:57 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1240,7 +1240,10 @@
 #
   unless ($ENV{'request.state'} eq 'published') {
     if ($ENV{'form.editmode'} && (!($ENV{'form.viewmode'}))) {
-      $result='<html><body bgcolor="#FFFFFF"></body></html>';
+	my $displayfile=$request->uri;
+        $displayfile=~s/^\/[^\/]*//;
+      $result='<html><body bgcolor="#FFFFFF"><h3>'.$displayfile.
+              '</h3></body></html>';
       $result=&inserteditinfo($result,$filecontents);
     }
   }