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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 22 Aug 2003 16:29:15 -0000


albertel		Fri Aug 22 12:29:15 2003 EDT

  Modified files:              
    /loncom/xml	londefdef.pm 
  Log:
  - endrirection could get called when no startredirection had been
  
  
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.163 loncom/xml/londefdef.pm:1.164
--- loncom/xml/londefdef.pm:1.163	Wed Aug 20 11:27:52 2003
+++ loncom/xml/londefdef.pm	Fri Aug 22 12:29:15 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Tags Default Definition Module 
 #
-# $Id: londefdef.pm,v 1.163 2003/08/20 15:27:52 sakharuk Exp $
+# $Id: londefdef.pm,v 1.164 2003/08/22 16:29:15 albertel Exp $
 # 
 #
 # Copyright Michigan State University Board of Trustees
@@ -407,8 +407,9 @@
 	    $currentstring = $token->[4];
 	}
     } elsif ($target eq 'tex') {
-	$currentstring=&Apache::lonxml::endredirection();
-	$currentstring='';
+	if ((not defined $content) && (not defined $name)) {
+	    &Apache::lonxml::startredirection();
+	}
     }
     return $currentstring;
 }