--- loncom/publisher/Attic/lonconstruct.pm 2004/10/29 18:40:40 1.23 +++ loncom/publisher/Attic/lonconstruct.pm 2005/02/28 08:22:09 1.29 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Construction Space Page Wrapper for Construction # -# $Id: lonconstruct.pm,v 1.23 2004/10/29 18:40:40 raeburn Exp $ +# $Id: lonconstruct.pm,v 1.29 2005/02/28 08:22:09 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -40,7 +40,7 @@ package Apache::lonconstruct; use strict; -use Apache::Constants qw(:common :http :methods REDIRECT); +use Apache::Constants qw(:common :http :methods); use Apache::lonnet; use Apache::Log (); use HTML::Entities(); @@ -92,7 +92,7 @@ sub handler { # -------------------------------------------------------------- Build frameset - $r->content_type('text/html'); + &Apache::loncommon::content_type($r,'text/html'); $r->send_http_header; return OK if $r->header_only; @@ -123,20 +123,21 @@ sub handler { # my $toprows = 0; my $topsrc = ''; - if ($ENV{'environment.remote'} eq 'on') { + if ($ENV{'environment.remote'} ne 'off') { $toprows = '110'; $topsrc = '/adm/localize/adm/publisher.html'; } + my $html=&Apache::lonxml::xmlbegin(); $r->print(< +$html LON-CAPA Construction Space - - - + + ENDPAGE