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

raeburn lon-capa-cvs@mail.lon-capa.org
Thu, 28 Dec 2006 17:20:36 -0000


raeburn		Thu Dec 28 12:20:36 2006 EDT

  Modified files:              
    /loncom/xml	lonxml.pm 
  Log:
  Bug 4604  Include baseurl in message.
  
  
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.434 loncom/xml/lonxml.pm:1.435
--- loncom/xml/lonxml.pm:1.434	Sun Dec 24 17:13:20 2006
+++ loncom/xml/lonxml.pm	Thu Dec 28 12:20:36 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # XML Parser Module 
 #
-# $Id: lonxml.pm,v 1.434 2006/12/24 22:13:20 raeburn Exp $
+# $Id: lonxml.pm,v 1.435 2006/12/28 17:20:36 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1572,6 +1572,7 @@
 	    my $cdom=$env{'course.'.$env{'request.course.id'}.'.domain'};
 	    my (undef,%users)=&Apache::lonfeedback::decide_receiver(undef,0,1,1,1);
 	    my $declutter=&Apache::lonnet::declutter($env{'request.filename'});
+            my $baseurl = &Apache::lonnet::clutter($declutter);
 	    my @userlist;
 	    foreach (keys %users) {
 		my ($user,$domain) = split(/:/, $_);
@@ -1585,7 +1586,7 @@
                     my $title = &Apache::lonnet::gettitle($symb);
                     my $sentmessage;
 		    &Apache::lonmsg::user_normal_msg($user,$domain,
-		        "Error [$title]",$msg,'','','','',
+		        "Error [$title]",$msg,'',$baseurl,'','',
                         \$sentmessage,$symb,$title,1);
 		    &Apache::lonnet::put('nohist_xmlerrornotifications',
 					 {$key => $now},