version 1.129, 2009/10/02 19:10:23
|
version 1.130, 2009/10/29 16:18:02
|
Line 787 sub create_course {
|
Line 787 sub create_course {
|
# Make the requested user a course coordinator or group coordinator |
# Make the requested user a course coordinator or group coordinator |
# |
# |
if (($ccdomain) && ($ccuname)) { |
if (($ccdomain) && ($ccuname)) { |
|
my $ccrole = 'cc'; |
|
if ($crstype eq 'Community') { |
|
$ccrole = 'co'; |
|
} |
$r->print(&mt('Assigning role of '.$crstype.' Coordinator to [_1]:', |
$r->print(&mt('Assigning role of '.$crstype.' Coordinator to [_1]:', |
,'<i>'.$ccuname.':'.$ccdomain.'</i>') |
,'<i>'.$ccuname.':'.$ccdomain.'</i>') |
.&Apache::lonnet::assignrole($ccdomain,$ccuname,$courseid, |
.&Apache::lonnet::assignrole($ccdomain,$ccuname,$courseid, |
'cc','','','','','createcourse').'<p>'); |
$ccrole,'','','','','createcourse').'<p>'); |
} |
} |
if ($env{'form.setkeys'}) { |
if ($env{'form.setkeys'}) { |
$r->print( |
$r->print( |