X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fautohandler;h=2bd3adffd7ea55b60e341b433dd85ef5c5e851c4;hp=e6e50d5bd17cc89cefc7ade2af895f3adf0cc150;hb=7ca594813a8426beb70d9f61544be1f6ac7b3d3f;hpb=abf5c5442afce5198f6289840791c96f58254e85 diff --git a/httemplate/autohandler b/httemplate/autohandler index e6e50d5bd..2bd3adffd 100644 --- a/httemplate/autohandler +++ b/httemplate/autohandler @@ -1,20 +1,18 @@ % $m->call_next; - <%init> dbh->{'private_profile'} = {} if UNIVERSAL::can(dbh, 'sprintProfile'); - <%filter> my $profile = ''; if ( UNIVERSAL::can(dbh, 'sprintProfile') ) { - #if contenttype is text/html!! **FIXME** + if ( lc($r->content_type) eq 'text/html' ) { $profile = '
'. ("\n"x4096). encode_entities(dbh->sprintProfile()).
                #"\n\n". &sprintAutoProfile(). '
'; "\n\n". ''; - #endif + } dbh->{'private_profile'} = {}; }