--- loncom/homework/bridgetask.pm 2005/08/15 19:41:16 1.41
+++ loncom/homework/bridgetask.pm 2005/09/07 22:20:33 1.44
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: bridgetask.pm,v 1.41 2005/08/15 19:41:16 albertel Exp $
+# $Id: bridgetask.pm,v 1.44 2005/09/07 22:20:33 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -148,8 +148,6 @@ sub add_grading_button {
&mt("Get a submission to grade").'" />';
$result.='';
if (&Apache::lonnet::allowed('mgq',$env{'request.course.id'})) {
- # FIXME need a permission for limiting this to 'powerful users'
-
my ($entries,$ready,$locks)=&get_queue_counts('gradingqueue');
$result.='
'.&mt("Grading Queue has [_1] entries. [_2] of them are ready to be graded and [_3] of them are currently being graded",$entries,$ready,$locks);
@@ -1038,7 +1036,7 @@ sub get_instance {
$result.='
';
my (undef,undef,$udom,$uname) = &Apache::lonxml::whichuser();
my $file_url = '/uploaded/'.$udom.'/'.$uname.'/portfolio';
- foreach my $partial_file (split(',',$Apache::lonhomework::history{"resource.$version.bridgetask.portfiles"})) {
+ foreach my $partial_file (split(',',$Apache::lonhomework::history{"resource.$version.0.bridgetask.portfiles"})) {
my $file=$file_url.$partial_file;
&Apache::lonnet::allowuploaded('/adm/bridgetask',$file);
$result.='