--- loncom/interface/lonsyllabus.pm 2006/10/23 20:25:45 1.56 +++ loncom/interface/lonsyllabus.pm 2007/07/27 00:17:17 1.60 @@ -1,7 +1,7 @@ # The LearningOnline Network # Syllabus # -# $Id: lonsyllabus.pm,v 1.56 2006/10/23 20:25:45 banghart Exp $ +# $Id: lonsyllabus.pm,v 1.60 2007/07/27 00:17:17 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -66,9 +66,6 @@ sub handler { # ------------------------------------------------------------ Print the screen - my $rss_link = - &Apache::lonrss::rss_link('http://'.$ENV{'HTTP_HOST'}.'/public/'.$cdom.'/'.$cnum.'/Course_Announcements.rss'); - if ($target eq 'tex') { $r->print(&Apache::lonprintout::print_latex_header($env{'form.latex_type'})); } @@ -112,6 +109,8 @@ sub handler { # ----------------------------------------------------------------- Make header if ($target ne 'tex') { + my $rss_link = &Apache::lonrss::rss_link($cnum,$cdom); + my $start_page = &Apache::loncommon::start_page("Syllabus", $rss_link, {'function' => $forcestudent, @@ -120,10 +119,10 @@ sub handler { $env{'form.register'},}); $r->print($start_page.'
'. &Apache::loncommon::help_open_topic('Uploaded_Templates_TextBoxes','Help with filling in text boxes').'
'.&mt('This syllabus can be publicly viewed at') .' http://'. - $Apache::lonnet::hostname{$homeserver}.$r->uri.''. + &Apache::lonnet::hostname($homeserver).$r->uri.''. &Apache::loncommon::help_open_topic('Syllabus_ExtLink').'
'. ''.&mt('You can specify an external URL as Syllabus in the [_1].',''.&mt('Course Parameters').'').'
'. '