--- loncom/interface/lonconfigsettings.pm 2010/04/02 21:47:54 1.13
+++ loncom/interface/lonconfigsettings.pm 2011/06/05 12:59:47 1.19
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set domain-wide configuration settings
#
-# $Id: lonconfigsettings.pm,v 1.13 2010/04/02 21:47:54 raeburn Exp $
+# $Id: lonconfigsettings.pm,v 1.19 2011/06/05 12:59:47 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -141,7 +141,7 @@ sub print_footer {
if (($phase eq 'display') || ($phase eq 'process')) {
if (ref($actions) eq 'ARRAY') {
foreach my $item (@{$actions}) {
- $r->print('')."\n";
+ $r->print(''."\n");
}
}
}
@@ -251,6 +251,13 @@ sub display_settings {
if (grep(/^\Q$item\E$/,@actions)) {
push(@items,$item);
if ($context eq 'domain') {
+ if ($item eq 'usersessions') {
+ $r->print(''."\n");
+ }
($output{$item},$rowtotal{$item}) =
&Apache::domainprefs::print_config_box($r,$dom,$confname,
$phase,$item,$prefs->{$item},$values->{$item});
@@ -275,34 +282,6 @@ sub display_settings {
}
$r->print('');
}
- if ($context eq 'course') {
- $r->print('
-
-');
- }
$r->print(&Apache::loncommon::end_page());
return;
}
@@ -336,8 +315,8 @@ sub display_choices {
if ($numitems%$numcols) {
$maxincol ++;
}
- my $firstthird = $maxincol;
- my $secondthird = $firstthird + $maxincol;
+ $firstthird = $maxincol;
+ $secondthird = $firstthird + $maxincol;
$count = 0;
if ((ref($prefs_order) eq 'ARRAY') && (ref($prefs) eq 'HASH')) {
foreach my $item (@{$prefs_order}) {