--- loncom/xml/lonplot.pm 2005/12/01 18:46:17 1.112 +++ loncom/xml/lonplot.pm 2006/09/06 19:26:15 1.114 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Dynamic plot # -# $Id: lonplot.pm,v 1.112 2005/12/01 18:46:17 albertel Exp $ +# $Id: lonplot.pm,v 1.114 2006/09/06 19:26:15 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -36,6 +36,9 @@ use Apache::response; use Apache::lonxml; use Apache::edit; use Apache::lonnet; +use lib '/home/httpd/lib/perl/'; +use LONCAPA; + use vars qw/$weboutputformat $versionstring/; @@ -574,11 +577,11 @@ sub end_gnuplot { '_'.time.'_'.$$.$randnumber.'_plot'; ## Write the plot description to the file &write_gnuplot_file($tmpdir,$filename,$target); - $filename = &Apache::lonnet::escape($filename); + $filename = &escape($filename); ## return image tag for the plot if ($target eq 'web') { $result .= <<"ENDIMAGE"; -