--- loncom/interface/lonhelper.pm 2011/11/07 18:22:03 1.187 +++ loncom/interface/lonhelper.pm 2012/10/29 17:38:56 1.189 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # .helper XML handler to implement the LON-CAPA helper # -# $Id: lonhelper.pm,v 1.187 2011/11/07 18:22:03 raeburn Exp $ +# $Id: lonhelper.pm,v 1.189 2012/10/29 17:38:56 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1913,7 +1913,13 @@ CHECK if ($anytime) { $result.=' checked="checked" ' } - $result.="name='${var}anytime'/>".&mt('Any time').'' + my $anytimetext = &mt('Any time'); + if (($var eq 'startreserve') || ($var eq 'endreserve')) { + $anytimetext = &mt('Any time before slot starts'); + } elsif (($var eq 'startunique') || ($var eq 'endunique')) { + $anytimetext = &mt('No restriction on uniqueness'); + } + $result.="name='${var}anytime'/>".$anytimetext.'' } return $result; @@ -2982,7 +2988,7 @@ BUTTONS $subdir=$londocroot.$subdir; } my ($user,$domain)= - &Apache::loncacc::constructaccess($subdir); + &Apache::lonnet::constructaccess($subdir); $metadir='/res/'.$domain.'/'.$user.'/'.$innerpath; ($listref,$listerror) = &Apache::lonnet::dirlist($subdir,$domain,$user,undef,undef,'/');