--- loncom/publisher/loncleanup.pm 2005/07/13 21:43:02 1.6 +++ loncom/publisher/loncleanup.pm 2006/05/30 12:47:41 1.8 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to cleanup XML files # -# $Id: loncleanup.pm,v 1.6 2005/07/13 21:43:02 www Exp $ +# $Id: loncleanup.pm,v 1.8 2006/05/30 12:47:41 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -38,6 +38,9 @@ use Apache::loncacc; use Apache::loncommon(); use Apache::lonlocal; use Apache::lonnet; +use lib '/home/httpd/lib/perl/'; +use LONCAPA; + sub latextrans { my $symbolfont=shift; @@ -294,9 +297,9 @@ sub phasetwo { $warningcount.' '.&mt('warning(s)'). '
'. &mt('Open (and edit) cleaned up file in new window').''. - '
'. + &escape($newuri).'" target="prev">'. &mt('Show diffs in new window').'
'. ''. ''. @@ -364,10 +367,7 @@ sub handler { &Apache::loncommon::content_type($r,'text/html'); $r->send_http_header; - my $html=&Apache::lonxml::xmlbegin(); - $r->print($html.'LON-CAPA Construction Space'); - - $r->print(&Apache::loncommon::bodytag('Cleanup XML Document')); + $r->print(&Apache::loncommon::start_page('Cleanup XML Document')); $r->print('

'.$fn.'

'. '
'. ''); @@ -387,7 +387,7 @@ sub handler { $r->print('
'. '
'.&mt('Back to Source File').''. '
'.&mt('Back to Source Directory').''. - ''); + &Apache::loncommon::end_page()); return OK; }