--- loncom/interface/lonchatfetch.pm 2006/05/18 01:08:50 1.24 +++ loncom/interface/lonchatfetch.pm 2006/05/30 12:46:08 1.25 @@ -1,7 +1,7 @@ # The LearningOnline Network # Chat Fetching # -# $Id: lonchatfetch.pm,v 1.24 2006/05/18 01:08:50 raeburn Exp $ +# $Id: lonchatfetch.pm,v 1.25 2006/05/30 12:46:08 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -34,6 +34,9 @@ use Apache::lontexconvert; use Apache::loncommon; use Apache::lonnet; use Apache::longroup; +use lib '/home/httpd/lib/perl/'; +use LONCAPA; + sub handler { my $r = shift; @@ -54,7 +57,7 @@ sub handler { my %group_info = &Apache::longroup::get_group_settings($curr_groups{$group}); $grouptitle = - ''.&Apache::lonnet::unescape($group_info{description}). + ''.&unescape($group_info{description}). '
'; } } elsif (! &Apache::lonnet::allowed('pch',$env{'request.course.id'}. @@ -107,7 +110,7 @@ sub handler { } my @participants=(); foreach (@entries) { - my ($id,$msg,$udom)=split(/\:/,&Apache::lonnet::unescape($_)); + my ($id,$msg,$udom)=split(/\:/,&unescape($_)); if ($id eq 'active_participant') { chomp($udom); my $participant= &Apache::loncommon::nickname($msg,$udom); @@ -117,8 +120,8 @@ sub handler { chomp($msg); my ($msgtime,$msgnum)=split(/\_/,$id); my ($sdom,$snum,$anon,$contrib)=split(/\:/, - &Apache::lonnet::unescape($msg)); - $contrib=&Apache::lonnet::unescape($contrib); + &unescape($msg)); + $contrib=&unescape($contrib); &Apache::lonfeedback::newline_to_br(\$contrib); ($contrib,my $errors)=&Apache::lontexconvert::msgtexconverted($contrib); if ($errors) { $contrib.="[Message not fully displayed due to incorrect embedded TeX]"; }