--- loncom/interface/lonsyllabus.pm 2003/09/17 19:45:39 1.23 +++ loncom/interface/lonsyllabus.pm 2004/01/15 04:46:36 1.26 @@ -1,7 +1,7 @@ # The LearningOnline Network # Syllabus # -# $Id: lonsyllabus.pm,v 1.23 2003/09/17 19:45:39 www Exp $ +# $Id: lonsyllabus.pm,v 1.26 2004/01/15 04:46:36 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -39,7 +39,7 @@ use Apache::lonlocal; sub handler { my $r = shift; - $r->content_type('text/html'); + &Apache::loncommon::content_type($r,'text/html'); $r->send_http_header; return OK if $r->header_only; @@ -176,16 +176,14 @@ ENDDOCUMENT # ---------------------------------------------------------------- Get syllabus if (($syllabus{'uploaded.lastmodified'}) || ($allowed)) { my $lastmod=$syllabus{'uploaded.lastmodified'}; - $lastmod=($lastmod?localtime($lastmod):'never'); - - $r->print('
'.&mt('Uploaded').':'. - &Apache::loncommon::aboutmewrapper( - &Apache::loncommon::plainname($syllabus{'uploaded.name'}, + $lastmod=($lastmod?&Apache::lonlocal::locallocaltime($lastmod):&mt('never')); + my $who = &Apache::loncommon::aboutmewrapper( + &Apache::loncommon::plainname($syllabus{'uploaded.name'}, $syllabus{'uploaded.domain'}),$syllabus{'uploaded.name'}, - $syllabus{'uploaded.domain'}). - '
Last updated:'. - $lastmod. - '

'); + $syllabus{'uploaded.domain'}); + $r->print('
'.&mt('Last updated').':'. + $lastmod.''.&mt('by').' '.$who. + '

'); if ($allowed) { $r->print('

'); }