--- loncom/interface/lonsimplepage.pm 2005/02/17 08:29:43 1.23 +++ loncom/interface/lonsimplepage.pm 2005/11/22 00:01:41 1.31 @@ -1,7 +1,7 @@ # The LearningOnline Network # Simple Page Editor # -# $Id: lonsimplepage.pm,v 1.23 2005/02/17 08:29:43 albertel Exp $ +# $Id: lonsimplepage.pm,v 1.31 2005/11/22 00:01:41 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -40,10 +40,10 @@ use Apache::lonxml; sub handler { my $r = shift; - $r->content_type('text/html'); + &Apache::loncommon::content_type($r,'text/html'); $r->send_http_header; return OK if $r->header_only; - my $target=$ENV{'form.grade_target'}; + my $target=$env{'form.grade_target'}; # ------------------------------------------------------------ Print the screen if ($target ne 'tex') { my $html=&Apache::lonxml::xmlbegin(); @@ -53,11 +53,11 @@ $html