X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fautohandler;h=bdea50534232e66a6d310e37b8ceae1e9b4a3f7f;hb=c648976f0b7975f2328ebd7ba8c711fad0ca4195;hp=ad0ab8ba6892a25bd1346111729c071cc1594de1;hpb=2c757d7db4cb6a7b9655de13206fcc84fb7ce61f;p=freeside.git diff --git a/httemplate/autohandler b/httemplate/autohandler index ad0ab8ba6..bdea50534 100644 --- a/httemplate/autohandler +++ b/httemplate/autohandler @@ -9,15 +9,18 @@ if ( UNIVERSAL::can(dbh, 'sprintProfile') ) { if ( lc($r->content_type) eq 'text/html' ) { - # barely worth it, just in case someone tries to use profiling on a - # non-RT install - eval "use Text::Wrapper;"; - die $@ if $@; + ## barely worth it, just in case someone tries to use profiling on a + ## non-RT install + #eval "use Text::Wrapper;"; + #die $@ if $@; my $wrapper = new Text::Wrapper( columns => 80 ); - + my $text = dbh->sprintProfile(); + #my $text = $wrapper->wrap( dbh->sprintProfile() ); + $text =~ s/^/ /mg; + $profile = '
'.
-               encode_entities( $wrapper->wrap( dbh->sprintProfile() ) ).
+               encode_entities( $text ).
                #"\n\n". &sprintAutoProfile(). '
'; "\n\n". ''; } @@ -27,3 +30,6 @@ if ( UNIVERSAL::can(dbh, 'sprintProfile') ) { s/(<\/BODY>[\s\n]*<\/HTML>[\s\n]*)$/$profile$1/i; +<%cleanup> + dbh->commit(); +