--- loncom/interface/lonstatistics.pm 2003/10/29 15:22:30 1.89 +++ loncom/interface/lonstatistics.pm 2003/12/24 21:54:58 1.92 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstatistics.pm,v 1.89 2003/10/29 15:22:30 matthew Exp $ +# $Id: lonstatistics.pm,v 1.92 2003/12/24 21:54:58 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1105,21 +1105,11 @@ sub handler { } } # - # Set document type for header only - if($r->header_only) { - if ($ENV{'browser.mathml'}) { - $r->content_type('text/xml'); - } else { - $r->content_type('text/html'); - } - &Apache::loncommon::no_cache($r); - $r->send_http_header; - return OK; - } - # # Send the header - $r->content_type('text/html'); + &Apache::loncommon::no_cache($r); + &Apache::loncommon::content_type($r,'text/html'); $r->send_http_header; + if ($r->header_only) { return OK; } # # Extract form elements from query string &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, @@ -1158,16 +1148,16 @@ sub handler { &Apache::loncoursedata::delete_caches($ENV{'requres.course.id'}); } # - # Set up the statistics and chart environment - &PrepareClasslist(); - &PrepareCourseData($r); - # # Begin form output $r->print('
print('method="post" action="/adm/statistics">'); $r->rflush(); # my $GoToPage = $ENV{'form.reportSelected'}; + # + # Set up the statistics and chart environment + &PrepareCourseData($r); + # $r->print(''); if($GoToPage eq 'activitylog') {