--- loncom/interface/groupboards.pm 2009/01/28 14:09:54 1.12
+++ loncom/interface/groupboards.pm 2013/09/23 17:35:07 1.20
@@ -1,6 +1,8 @@
# The LearningOnline Network
# Group Bulletin Boards Manager
#
+# $Id: groupboards.pm,v 1.20 2013/09/23 17:35:07 bisitz Exp $
+#
# Copyright Michigan State University Board of Trustees
#
# This file is part of the LearningOnline Network with CAPA (LON-CAPA).
@@ -59,7 +61,7 @@ sub handler {
my $gpterm = &Apache::loncommon::group_term();
my $ucgpterm = $gpterm;
$ucgpterm =~ s/^(\w)/uc($1)/e;
- my $bodytitle = $crstype.' Discussion Boards';
+ my $bodytitle = $ucgpterm.' Discussion Boards';
my $group = $env{'form.group'};
$group =~ s/\W//g;
my ($description,$earlyout,$refarg);
@@ -103,11 +105,11 @@ sub handler {
if (($can_create) || (&Apache::lonnet::allowed('mdg',$env{'request.course.id'}))) {
$r->print(&boards_header($cdom,$cnum,$group,$description,$gpterm,
$ucgpterm,$bodytitle,$refarg));
- my ($outcome,$newurl,$bbtitle,$dellockoutcome) =
+ my ($outcome,$newurl,$bbtitle,$lockfreed) =
&create_board($cdom,$cnum,$group,$env{'form.newbul'});
if ($outcome eq 'ok') {
my ($furl,$ferr)= &Apache::lonuserstate::readmap($cdom.'/'.$cnum);
- $r->print(&mt('The new discussion board was added successfully.
'));
+ $r->print(&mt('The new discussion board was added successfully.').'
');
$r->print('
'. ''.&mt('Edit [_1] board',$bbtitle).' | '. @@ -115,8 +117,12 @@ sub handler { ''.&mt('View all group discussion boards'). '