X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fautohandler;h=d52b791a752459fa95b3fbd49bc73c0b4ae4e9ea;hb=68fcc90d8e95f1efe0efe07b2f59e5fab2d8c535;hp=3a244170308710d375360ca95dc2efb33b3d288b;hpb=1c051d721533307ff9d1879deb3107e3a51058fa;p=freeside.git diff --git a/httemplate/autohandler b/httemplate/autohandler index 3a2441703..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') ) { @@ -29,7 +29,7 @@ if ( UNIVERSAL::can(dbh, 'sprintProfile') ) { if ( $FS::CurrentUser::CurrentUser->option('save_db_profile') ) { #my $file = %%%FREESIDE_LOG%%%; #substitute here? maybe get from FS.pm? my $file = '/usr/local/etc/freeside/'; #bah - $file .= "dbix_profile..$$.". time; + $file .= "dbix_profile.$$.". time; dbh->setLogFile($file); dbh->printProfile(); }