version 1.556, 2013/08/06 14:18:52
|
version 1.557, 2013/08/07 00:03:24
|
Line 56 my $hashtied;
|
Line 56 my $hashtied;
|
my %alreadyseen=(); |
my %alreadyseen=(); |
|
|
my $hadchanges; |
my $hadchanges; |
|
my $suppchanges; |
|
|
|
|
my %help=(); |
my %help=(); |
Line 79 sub storemap {
|
Line 80 sub storemap {
|
$map,1,$report); |
$map,1,$report); |
if ($errtext) { return ($errtext,2); } |
if ($errtext) { return ($errtext,2); } |
|
|
$hadchanges=1; |
if ($map =~ /^default/) { |
|
$hadchanges=1; |
|
} else { |
|
$suppchanges=1; |
|
} |
return ($errtext,0); |
return ($errtext,0); |
} |
} |
|
|
Line 402 END
|
Line 407 END
|
} |
} |
my ($errtext,$fatal) = |
my ($errtext,$fatal) = |
&storemap($coursenum, $coursedom, $folder.'.'.$container,1); |
&storemap($coursenum, $coursedom, $folder.'.'.$container,1); |
|
unless ($fatal) { |
|
if ($folder =~ /^supplemental/) { |
|
&Apache::lonnet::get_numsuppfiles($coursenum,$coursedom,1); |
|
} |
|
} |
return ($errtext,$fatal,$fixuperrors); |
return ($errtext,$fatal,$fixuperrors); |
} |
} |
|
|
Line 4976 my %suporderhash = (
|
Line 4986 my %suporderhash = (
|
$supplementalflag,\%suporderhash,$iconpath,$pathitem); |
$supplementalflag,\%suporderhash,$iconpath,$pathitem); |
if ($error) { |
if ($error) { |
$r->print('<p><span class="LC_error">'.$error.'</span></p>'); |
$r->print('<p><span class="LC_error">'.$error.'</span></p>'); |
} |
} else { |
|
if ($suppchanges) { |
|
my %servers = &Apache::lonnet::internet_dom_servers($coursedom); |
|
my @ids=&Apache::lonnet::current_machine_ids(); |
|
foreach my $server (keys(%servers)) { |
|
next if (grep(/^\Q$server\E$/,@ids)); |
|
my $hashid=$coursenum.':'.$coursedom; |
|
&Apache::lonnet::remote_devalidate_cache($server,'suppcount',$hashid); |
|
} |
|
&Apache::lonnet::get_numsuppfiles($coursenum,$coursedom,1); |
|
undef($suppchanges); |
|
} |
|
} |
} |
} |
} elsif ($supplementalflag) { |
} elsif ($supplementalflag) { |
my $error = &editor($r,$coursenum,$coursedom,$folder,$allowed,'',$crstype, |
my $error = &editor($r,$coursenum,$coursedom,$folder,$allowed,'',$crstype, |