--- loncom/publisher/Attic/lonconstruct.pm 2003/06/16 21:32:43 1.13 +++ loncom/publisher/Attic/lonconstruct.pm 2003/11/19 14:57:32 1.20 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Construction Space Page Wrapper for Construction # -# $Id: lonconstruct.pm,v 1.13 2003/06/16 21:32:43 www Exp $ +# $Id: lonconstruct.pm,v 1.20 2003/11/19 14:57:32 taceyjo1 Exp $ # # Copyright Michigan State University Board of Trustees # @@ -99,12 +99,11 @@ sub handler { return OK if $r->header_only; my $lowerframe=$r->path_info; - &Debug($r, "Initial URL for lower frame: ".$lowerframe); $lowerframe=~s/^\//\/\~/; &Debug($r, "Lower frame URL afer ~ subst: ".$lowerframe); $lowerframe= &HTML::Entities::encode($lowerframe); - &Debug($r, "LOwer frame URL after quote subst: ".$lowerframe); + &Debug($r, "Lower frame URL after quote subst: ".$lowerframe); # # Are we forcing edit mode? @@ -114,8 +113,12 @@ sub handler { ($ENV{'QUERY_STRING'},['forceedit']); if ($ENV{'form.forceedit'}) { $lowerframe.='?editmode=Edit&problemmode=EditXML'; + } + &Apache::loncommon::get_unprocessed_cgi + ($ENV{'QUERY_STRING'},['forceColoredit']); + if ($ENV{'form.forceColoredit'}) { + $lowerframe.='?editmode=Edit&problemmode=Edit'; } - $r->print(< LON-CAPA Construction Space