--- loncom/interface/lonconfigsettings.pm 2015/05/22 16:52:16 1.21.4.7 +++ loncom/interface/lonconfigsettings.pm 2024/07/06 16:46:51 1.21.4.15 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set domain-wide configuration settings # -# $Id: lonconfigsettings.pm,v 1.21.4.7 2015/05/22 16:52:16 raeburn Exp $ +# $Id: lonconfigsettings.pm,v 1.21.4.15 2024/07/06 16:46:51 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -39,7 +39,7 @@ use Apache::courseclassifier(); use LONCAPA qw(:DEFAULT :match); sub print_header { - my ($r,$phase,$context,$jscript,$container) = @_; + my ($r,$phase,$context,$jscript,$container,$instcode,$dom) = @_; my ($pagetitle,$brcrumtitle,$action,$call_category_check,$instcode_check, $crstype,@actions,@code_order); if ($phase eq 'display') { @@ -74,6 +74,7 @@ sub print_header { \@code_order); if (@code_order) { my $noinstcodestr = &mt('You indicated cloning based on category, but did not select any categories.'); + &js_escape(\$noinstcodestr); $instcode_check = <<"ENDSCRIPT"; if (formname == document.display) { if (formname.cloners_instcode.length) { @@ -117,6 +118,7 @@ ENDSCRIPT } } my $alert = &mt('You must select at least one functionality type to display.'); + &js_escape(\$alert); my $js = ' '."\n"); - $r->print('