[LON-CAPA-users] errors and bombs
Lars Jensen
lon-capa-users@mail.lon-capa.org
Mon, 25 Aug 2003 17:09:09 -0700 (PDT)
Hi Guy,
Is 1.0.1 ready or almost ready?
Lars.
On Mon, 25 Aug 2003, Guy Albertelli II wrote:
> 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-
> _______________________________________________
> LON-CAPA-users mailing list
> LON-CAPA-users@mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
>
--
Lars Jensen, TMCC/Vista B200, 7000 Dandini Blvd, Reno NV 89512-3999.
Internet: <jensen@physics.unr.edu>, http://www.scsr.nevada.edu/~jensen/
Tel: 775.673.7113 FAX: 775.674.7592