[LON-CAPA-cvs] cvs: loncom(GCI_3) /auth lonroles.pm
raeburn
raeburn@source.lon-capa.org
Fri, 15 Jan 2010 05:30:21 -0000
raeburn Fri Jan 15 05:30:21 2010 EDT
Modified files: (Branch: GCI_3)
/loncom/auth lonroles.pm
Log:
- Customization for GCI_3.
- Backport 1.241.
Index: loncom/auth/lonroles.pm
diff -u loncom/auth/lonroles.pm:1.240.2.8 loncom/auth/lonroles.pm:1.240.2.9
--- loncom/auth/lonroles.pm:1.240.2.8 Wed Jan 6 22:40:26 2010
+++ loncom/auth/lonroles.pm Fri Jan 15 05:30:21 2010
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# User Roles Screen
#
-# $Id: lonroles.pm,v 1.240.2.8 2010/01/06 22:40:26 raeburn Exp $
+# $Id: lonroles.pm,v 1.240.2.9 2010/01/15 05:30:21 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -139,6 +139,7 @@
use Apache::lonpageflip();
use Apache::lonnavdisplay();
use Apache::lonmainmenu();
+use Apache::loncoursequeueadmin;
use GDBM_File;
use LONCAPA qw(:DEFAULT :match);
use HTML::Entities;
@@ -765,7 +766,7 @@
.'</p>');
} else {
if ($countactive > 0) {
- &queued_selfenrollment($r);
+ $r->print(&Apache::loncoursequeueadmin::queued_selfenrollment());
my $domdesc = &Apache::lonnet::domain($env{'user.domain'},'description');
my $esc_dom = &HTML::Entities::encode($env{'user.domain'},'"<>&');
unless ($env{'user.domain'} eq 'gcitest') {
@@ -1270,8 +1271,8 @@
}
$r->print('<h3>'.&mt('Self-Enrollment').'</h3>'.
'<p>'.&mt('The [_1]Course/Community Catalog[_2] provides information about all [_3] classes for which LON-CAPA courses have been created, as well as any communities in the domain.','<a href="/adm/coursecatalog?showdom='.$esc_dom.'">','</a>',$domdesc).'<br />');
- $r->print(&mt('You can search for courses and communities which permit self-enrollment, if you would like to enroll in one.').'</p>');
- &queued_selfenrollment($r);
+ $r->print(&mt('You can search for courses and communities which permit self-enrollment, if you would like to enroll in one.').'</p>'.
+ &Apache::loncoursequeueadmin::queued_selfenrollment());
return;
}