--- loncom/interface/lonbulletin.pm 2006/03/21 20:41:40 1.33 +++ loncom/interface/lonbulletin.pm 2006/03/21 21:01:22 1.34 @@ -1,7 +1,7 @@ # The LearningOnline Network # Bulletin Board Handler # -# $Id: lonbulletin.pm,v 1.33 2006/03/21 20:41:40 albertel Exp $ +# $Id: lonbulletin.pm,v 1.34 2006/03/21 21:01:22 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -50,18 +50,16 @@ sub handler { my (undef,undef,undef,undef,$marker)=split(/\//,$r->uri); # Is this even in a course? if (!$env{'request.course.id'}) { - $r->print(&Apache::loncommon::start_page('Not in a course'). - &mt('Not in a course'). - &Apache::loncommon::end_page()); + &Apache::loncommon::simple_error_page($r,'Not in a course', + 'Not in a course'); return OK; } $marker=~s/\D//g; if (!$marker) { - $r->print(&Apache::loncommon::start_page('Invalid Call'). - &mt('Invalid Call'). - &Apache::loncommon::end_page()); + &Apache::loncommon::simple_error_page($r,'Invalid Call', + 'Invalid Call'); return OK; }