version 1.105, 2009/10/31 05:39:25
|
version 1.107, 2010/05/27 04:44:33
|
Line 847 sub show_choices {
|
Line 847 sub show_choices {
|
(keys(%slots))) { |
(keys(%slots))) { |
|
|
&Apache::lonxml::debug("Checking Slot $slot"); |
&Apache::lonxml::debug("Checking Slot $slot"); |
next if (!&allowed_slot($slot,$slots{$slot},undef,\%slots, |
next if (!&allowed_slot($slot,$slots{$slot},$symb,\%slots, |
$consumed_uniqueperiods)); |
$consumed_uniqueperiods)); |
|
|
push(@available,$slot); |
push(@available,$slot); |
Line 1050 sub show_table {
|
Line 1050 sub show_table {
|
} |
} |
|
|
if (!keys(%slots)) { |
if (!keys(%slots)) { |
$r->print('<div>'.&mt('No slots have been created in this course.').'</div>'); |
if ($crstype eq 'Community') { |
|
$r->print('<div>'.&mt('No slots have been created in this community.').'</div>'); |
|
} else { |
|
$r->print('<div>'.&mt('No slots have been created in this course.').'</div>'); |
|
} |
return; |
return; |
} |
} |
|
|