--- loncom/interface/lonbulletin.pm 2009/12/07 14:23:43 1.53 +++ loncom/interface/lonbulletin.pm 2009/12/08 10:26:21 1.54 @@ -1,7 +1,7 @@ # The LearningOnline Network # Bulletin Board Handler # -# $Id: lonbulletin.pm,v 1.53 2009/12/07 14:23:43 wenzelju Exp $ +# $Id: lonbulletin.pm,v 1.54 2009/12/08 10:26:21 wenzelju Exp $ # # Copyright Michigan State University Board of Trustees # @@ -234,7 +234,7 @@ sub handler { &Apache::lonnet::put('bulletinpage_'.$marker,\%syllabus,$dom,$crs); } -# ---------------------------------------------------------------- Get syllabus +# ---------------------------------------------------------------- Get discussion board if (($syllabus{'uploaded.lastmodified'}) || ($allowed)) { if ($syllabus{'uploaded.photourl'}) { &Apache::lonnet::allowuploaded('/adm/syllabus', @@ -242,13 +242,13 @@ sub handler { } #Outputbox and Inputbox for Image upload if ($allowed) { - &Apache::lontemplate::print_template($r, &mt('Upload a Photo'), '',$allowed,'LC_Box'); + &Apache::lontemplate::print_template($r, &mt('Upload a Photo'), ''.&mt('Image').'',$allowed,'LC_Box'); $r->print( - '
'. + ''. ''. ''. ''. - '
'. + '
'. ''); } #Image in Student view. @@ -295,6 +295,12 @@ sub handler { if ($allowed) { $r->print('
'); } + if ($target ne 'tex'){ + $r->print('



'); + } + else { + $r->print(&Apache::lonxml::xmlparse($r,'tex','



')); + } } else { $r->print('

'.&mt('No page information provided.').'

'); }