--- loncom/interface/londocs.pm 2002/12/04 16:19:05 1.39 +++ loncom/interface/londocs.pm 2002/12/09 22:27:20 1.40 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.39 2002/12/04 16:19:05 www Exp $ +# $Id: londocs.pm,v 1.40 2002/12/09 22:27:20 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -45,6 +45,8 @@ my %hash; my $hashtied; my %alreadyseen=(); +my $hadchanges; + # Mapread read maps into lonratedt::global arrays # @order and @resources, determines status # sets @order - pointer to resources in right order @@ -60,6 +62,7 @@ sub mapread { sub storemap { my ($coursenum,$coursedom,$map)=@_; + $hadchanges=1; return &Apache::lonratedt::storemap('/uploaded/'.$coursedom.'/'.$coursenum.'/'. $map,1); @@ -587,7 +590,11 @@ ENDCOURSEVERIFY $r->print('

Main Course Documents

'); my $folder=$ENV{'form.folder'}; unless ($folder=~/^default/) { $folder='default'; } + $hadchanges=0; &editor($r,$coursenum,$coursedom,$folder,$allowed); + if ($hadchanges) { + $r->print('

Changes will become active after re-initializing course or at next login.

'); + } my $folderseq='/uploaded/'.$coursedom.'/'.$coursenum.'/default_'.time. '.sequence'; $r->print(<