--- loncom/interface/domainprefs.pm 2024/04/14 17:12:27 1.438 +++ loncom/interface/domainprefs.pm 2024/04/17 01:02:47 1.439 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set domain-wide configuration settings # -# $Id: domainprefs.pm,v 1.438 2024/04/14 17:12:27 raeburn Exp $ +# $Id: domainprefs.pm,v 1.439 2024/04/17 01:02:47 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -13425,7 +13425,7 @@ sub modify_authordefaults { 'nocodemirror' => 'off', 'daxecollapse' => 'off', 'domcoordacc' => 'on', - 'editors' => ['edit','xml']. + 'editors' => ['edit','xml'], 'authorquota' => 500, 'webdav' => 0, ); @@ -13506,6 +13506,12 @@ sub modify_authordefaults { $changes{$item} = 1; } } + my @diffs = + &Apache::loncommon::compare_arrays($confhash{'editors'}, + $staticdefaults{'editors'}); + unless (@diffs == 0) { + $changes{'editors'} = 1; + } } foreach my $key ('authorquota','webdav') { if (ref($curr_quotas{$key}) eq 'HASH') { @@ -13626,6 +13632,7 @@ sub modify_authordefaults { if ($domcoordoverride) { $resulttext .= ''; } + $resulttext .= ''; my $cachetime = 24*60*60; &Apache::lonnet::do_cache_new('domdefaults',$dom,\%domdefaults,$cachetime); if (ref($lastactref) eq 'HASH') {