--- loncom/homework/convertjme.pl 2005/04/07 06:56:21 1.14 +++ loncom/homework/convertjme.pl 2005/05/25 22:31:51 1.15 @@ -2,7 +2,7 @@ # The LearningOnline Network with CAPA # Dynamically converts JME strings into either a png or ps file. # -# $Id: convertjme.pl,v 1.14 2005/04/07 06:56:21 albertel Exp $ +# $Id: convertjme.pl,v 1.15 2005/05/25 22:31:51 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -66,11 +66,11 @@ sub unescape { my ($id,$width,$ps,$png,@JMEstring); if ($loncapa) { $id=$ENV{'QUERY_STRING'}; - $width = $env{'cgi.'.$id.'.WIDTH'}; + $width = $Apache::lonnet::env{'cgi.'.$id.'.WIDTH'}; if (!$width) { $width = 400; } - $png = $env{'cgi.'.$id.'.PNG'}; - $ps = $env{'cgi.'.$id.'.PS'}; - @JMEstring=&unescape($env{'cgi.'.$id.'.JME'}); + $png = $Apache::lonnet::env{'cgi.'.$id.'.PNG'}; + $ps = $Apache::lonnet::env{'cgi.'.$id.'.PS'}; + @JMEstring=&unescape($Apache::lonnet::env{'cgi.'.$id.'.JME'}); } else { @JMEstring = @ARGV; $width = shift @JMEstring;