[LON-CAPA-users] errors and bombs

Guy Albertelli II lon-capa-users@mail.lon-capa.org
Mon, 25 Aug 2003 18:11:33 -0400 (EDT)


Hi Lars,

> I (the CC) am getting some weird errors and bombs on my nave page. The
> error some stidents have received, and which is e-mailed to me is:

Yes, I have a fix for this done and ready for 1.0.1

(It effects printing of some resources)

If you'd like to apply it now the diff is:

diff -u -r1.158 -r1.158.4.1
--- londefdef.pm        1 Aug 2003 13:35:20 -0000       1.158
+++ londefdef.pm        22 Aug 2003 16:47:44 -0000      1.158.4.1
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Tags Default Definition Module
 #
-# $Id: londefdef.pm,v 1.158 2003/08/01 13:35:20 sakharuk Exp $
+# $Id: londefdef.pm,v 1.158.4.1 2003/08/22 16:47:44 albertel Exp $
 #
 #
 # Copyright Michigan State University Board of Trustees
@@ -394,7 +394,7 @@
 }

 sub end_meta {
-    my ($target,$token,$tagstack,$parstack,$parser) = @_;
+    my ($target,$token,$tagstack,$parstack,$parser,$safeeval) = @_;
     my $currentstring = '';
     if ($target eq 'web') {
        my $args='';
@@ -403,8 +403,11 @@
            $currentstring = $token->[4];
        }
     } elsif ($target eq 'tex') {
-       $currentstring=&Apache::lonxml::endredirection();
-       $currentstring='';
+       my $content=&Apache::lonxml::get_param('content',$parstack,$safeeval);
+       my $name=&Apache::lonxml::get_param('name',$parstack,$safeeval);
+       if ((not defined $content) && (not defined $name)) {
+           &Apache::lonxml::startredirection();
+       }
     }
     return $currentstring;
 }


-- 
guy@albertelli.com  LON-CAPA Developer  0-7-6-1-