--- loncom/xml/lonxml.pm 2004/01/21 02:33:05 1.297 +++ loncom/xml/lonxml.pm 2004/01/28 16:10:26 1.298 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.297 2004/01/21 02:33:05 sakharuk Exp $ +# $Id: lonxml.pm,v 1.298 2004/01/28 16:10:26 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -192,7 +192,7 @@ sub xmlend { $mode='problem'; $status=$Apache::inputtags::status[-1]; } - return &Apache::lonfeedback::list_discussion().''; + return &Apache::lonfeedback::list_discussion($mode,$status).''; } sub tokeninputfield { @@ -1294,10 +1294,10 @@ sub display_title { } sub debug { - if ($Apache::lonxml::debug eq 1) { - $|=1; - print('DEBUG:'.&HTML::Entities::encode($_[0])."\n"); - } + if ($Apache::lonxml::debug eq "1") { + $|=1; + Apache->request->print('DEBUG:'.&HTML::Entities::encode($_[0])."\n"); + } } sub error {