version 1.26, 2013/09/07 00:19:00
|
version 1.27, 2013/10/06 21:25:59
|
Line 188 sub make_changes {
|
Line 188 sub make_changes {
|
{href=>"javascript:changePage(document.$phase,'$phase')", |
{href=>"javascript:changePage(document.$phase,'$phase')", |
text=>"Updated"}); |
text=>"Updated"}); |
&print_header($r,$phase,$context,undef,$container); |
&print_header($r,$phase,$context,undef,$container); |
my ($crstype,$lastact); |
my ($crstype,%lastact); |
if ($context eq 'course') { |
if ($context eq 'course') { |
$crstype = &Apache::loncommon::course_type(); |
$crstype = &Apache::loncommon::course_type(); |
} |
} |
Line 199 sub make_changes {
|
Line 199 sub make_changes {
|
if ($context eq 'domain') { |
if ($context eq 'domain') { |
$r->print('<h3>'.&mt($prefs->{$item}{'text'}).'</h3>'. |
$r->print('<h3>'.&mt($prefs->{$item}{'text'}).'</h3>'. |
&Apache::domainprefs::process_changes($r,$dom, |
&Apache::domainprefs::process_changes($r,$dom, |
$confname,$item,$roles,$values,\$lastact)); |
$confname,$item,$roles,$values,\%lastact)); |
} else { |
} else { |
$changes{$item} = {}; |
$changes{$item} = {}; |
&Apache::courseprefs::process_changes($dom,$item,$values, |
&Apache::courseprefs::process_changes($dom,$item,$values, |
Line 244 sub make_changes {
|
Line 244 sub make_changes {
|
} |
} |
&print_footer($r,$phase,'display',$footer_text,\@actions,$container); |
&print_footer($r,$phase,'display',$footer_text,\@actions,$container); |
$r->print('</p>'); |
$r->print('</p>'); |
return $lastact; |
return \%lastact; |
} |
} |
|
|
sub display_settings { |
sub display_settings { |