X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fautohandler;h=d52b791a752459fa95b3fbd49bc73c0b4ae4e9ea;hb=b09958bc22d82835c95967c03f8e3f4b79ba6e8f;hp=ae04d423f7edde9b442747cf95358d782bef1c2d;hpb=b5c4237a34aef94976bc343c8d9e138664fc3984;p=freeside.git diff --git a/httemplate/autohandler b/httemplate/autohandler index ae04d423f..d52b791a7 100644 --- a/httemplate/autohandler +++ b/httemplate/autohandler @@ -7,7 +7,7 @@ my $profile = ''; if ( UNIVERSAL::can(dbh, 'sprintProfile') ) { - if ( lc($r->content_type) eq 'text/html' + if ( lc($r->content_type) =~ /^text\/html/ && $FS::CurrentUser::CurrentUser->option('show_db_profile') ) {