--- loncom/interface/groupboards.pm 2012/07/21 21:20:06 1.15
+++ loncom/interface/groupboards.pm 2020/09/08 23:54:40 1.23
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Group Bulletin Boards Manager
#
-# $Id: groupboards.pm,v 1.15 2012/07/21 21:20:06 raeburn Exp $
+# $Id: groupboards.pm,v 1.23 2020/09/08 23:54:40 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -33,6 +33,8 @@ use Apache::Constants qw(:common :http);
use Apache::loncommon();
use Apache::lonnet;
use Apache::lonuserstate();
+use Apache::longroup;
+use Apache::lonnavmaps;
use LONCAPA::map();
use Apache::lonlocal;
use LONCAPA;
@@ -72,7 +74,7 @@ sub handler {
&Apache::lonhtmlcommon::clear_breadcrumbs();
if (!defined($group)) {
- $earlyout = &mt('No [_1] defined, so there are no [_1] discussion boards to display',$gpterm);
+ $earlyout = &mt("No $gpterm defined, so there are no $gpterm discussion boards to display");
$r->print(&display_error($cdom,$cnum,$group,$description,$gpterm,
$ucgpterm,$bodytitle,$earlyout,$refarg));
return OK;
@@ -96,7 +98,7 @@ sub handler {
'/'.$group);
}
if (!$can_view) {
- $earlyout=&mt('You do not have privileges to view discussion boards in this [_1]',$gpterm);
+ $earlyout=&mt("You do not have privileges to view discussion boards in this $gpterm");
$r->print(&display_error($cdom,$cnum,$group,$description,$gpterm,
$ucgpterm,$bodytitle,$earlyout,$refarg));
return OK;
@@ -105,11 +107,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).' | '. @@ -117,8 +119,12 @@ sub handler { ''.&mt('View all group discussion boards'). '