--- loncom/interface/lonbulletin.pm 2010/01/31 06:03:55 1.58
+++ loncom/interface/lonbulletin.pm 2010/08/07 19:23:50 1.61
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Bulletin Board Handler
#
-# $Id: lonbulletin.pm,v 1.58 2010/01/31 06:03:55 faziophi Exp $
+# $Id: lonbulletin.pm,v 1.61 2010/08/07 19:23:50 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -184,6 +184,9 @@ sub handler {
if (($group ne '') && ($env{'form.group'} eq $group)) {
$query_str.='&group='.$group.'&'.$refarg;
}
+ if ($env{'form.register'}) {
+ $query_str .= '®ister='.$env{'form.register'};
+ }
#Function Box for Edit Mode.
my $functionbox = &Apache::lonhtmlcommon::start_funclist();
$functionbox .= &Apache::lonhtmlcommon::add_item_funclist(
@@ -196,6 +199,9 @@ sub handler {
if (($group ne '') && ($env{'form.group'} eq $group)) {
$query_str.='&group='.$group.'&'.$refarg;
}
+ if ($env{'form.register'}) {
+ $query_str .= '®ister='.$env{'form.register'};
+ }
#Functionbox for Student view.
my $functionbox = &Apache::lonhtmlcommon::start_funclist();
$functionbox .= &Apache::lonhtmlcommon::add_item_funclist(
@@ -259,7 +265,6 @@ sub handler {
&Apache::lonnet::allowuploaded('/adm/syllabus',
$syllabus{'uploaded.photourl'});
}
- my @htmlids=();
#Outputbox and Inputbox for Image upload
if ($allowed) {
my $message = '';
@@ -279,11 +284,11 @@ sub handler {
}
my %custom_handlers = ( 'aaa_title' => sub {} );
- @htmlids = &Apache::lontemplate::print_template_fields($r, \%syllabus, \%syllabusfields,
+ &Apache::lontemplate::print_template_fields($r, \%syllabus, \%syllabusfields,
$target, $allowed, Apache::lontemplate->RICH_TEXT_DETECT_HTML, \%custom_handlers);
if ($allowed) {
$r->print(''.
- &Apache::lonhtmlcommon::htmlareaselectactive(@htmlids));
+ &Apache::lonhtmlcommon::htmlareaselectactive());
}
if ($target ne 'tex'){
$r->print('
'.&mt('No page information provided.').'
'); + if ($target ne 'tex') { + $r->print(''.&mt('No page information provided.').'
'); + } } #Lists discussion posts and box for a new discussion post. if ($target ne 'tex') {