--- loncom/xml/londefdef.pm 2005/03/15 11:26:34 1.263 +++ loncom/xml/londefdef.pm 2005/03/31 15:54:33 1.265 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Tags Default Definition Module # -# $Id: londefdef.pm,v 1.263 2005/03/15 11:26:34 foxr Exp $ +# $Id: londefdef.pm,v 1.265 2005/03/31 15:54:33 albertel Exp $ # # # Copyright Michigan State University Board of Trustees @@ -156,7 +156,6 @@ sub start_html { if ($target eq 'web' || $target eq 'edit') { $currentstring = &Apache::lonxml::xmlbegin(); } elsif ($target eq 'tex') { - @Apache::londefdef::table = (); $currentstring .= '\documentclass[letterpaper]{article}'; if (($ENV{'form.latex_type'}=~'batchmode') || (!$ENV{'request.role.adv'})) {$currentstring .='\batchmode';} @@ -3757,7 +3756,7 @@ sub image_replication { $pssrc =~ s/\.(gif|jpg|jpeg|png)$/.ps/i; if (not -e $epssrc && not -e $pssrc) { my $result=&Apache::lonnet::repcopy($epssrc); - if ($result ne 'OK') { &Apache::lonnet::repcopy($pssrc); } + if ($result ne 'ok') { &Apache::lonnet::repcopy($pssrc); } } return ''; } @@ -3834,14 +3833,14 @@ sub get_eps_image { &Apache::lonxml::debug("Filelocation gives; $src
"); if (! -e $src) { &Apache::lonxml::debug("$src does not exist"); - if (&Apache::lonnet::repcopy($src) ne 'OK' ) { + if (&Apache::lonnet::repcopy($src) ne 'ok' ) { &Apache::lonxml::debug("Repcopy of $src failed (1)"); #if replication failed try to find ps file $src=~s/\.eps$/\.ps/; &Apache::lonxml::debug("Now looking for $src"); #if no ps file try to replicate it if (not -e $src && - &Apache::lonnet::repcopy($src) ne 'OK') { + &Apache::lonnet::repcopy($src) ne 'ok') { &Apache::lonxml::debug("Failed to find or replicate $src"); #if replication failed try to produce eps file dynamically