--- loncom/homework/imageresponse.pm 2007/10/15 20:20:49 1.91 +++ loncom/homework/imageresponse.pm 2008/03/12 02:46:53 1.93 @@ -2,7 +2,7 @@ # The LearningOnline Network with CAPA # image click response style # -# $Id: imageresponse.pm,v 1.91 2007/10/15 20:20:49 albertel Exp $ +# $Id: imageresponse.pm,v 1.93 2008/03/12 02:46:53 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -59,6 +59,7 @@ sub start_imageresponse { $result=&Apache::response::meta_package_write('imageresponse'); } elsif ($target eq 'analyze') { my $part_id="$Apache::inputtags::part.$id"; + $Apache::lonhomework::analyze{"$part_id.type"} = 'imageresponse'; push (@{ $Apache::lonhomework::analyze{"parts"} },$part_id); push (@{ $Apache::lonhomework::analyze{"$part_id.bubble_lines"} }, 1); @@ -222,7 +223,7 @@ sub draw_image { } } } - &Apache::lonnet::appenv(%x); + &Apache::lonnet::appenv(\%x); return $id; }