[freeside-commits] freeside/httemplate autohandler,1.6,1.7

Ivan,,, ivan at wavetail.420.am
Mon Feb 16 18:28:50 PST 2009


Update of /home/cvs/cvsroot/freeside/httemplate
In directory wavetail.420.am:/tmp/cvs-serv23011/httemplate

Modified Files:
	autohandler 
Log Message:
per-user preference for turning on profiling display when DBIx::Profile is loaded, RT#4830

Index: autohandler
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/autohandler,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- autohandler	20 Nov 2006 03:05:52 -0000	1.6
+++ autohandler	17 Feb 2009 02:28:48 -0000	1.7
@@ -7,7 +7,10 @@
 my $profile = '';
 if ( UNIVERSAL::can(dbh, 'sprintProfile') ) {
 
-  if ( lc($r->content_type) eq 'text/html' ) {
+  if ( lc($r->content_type) eq 'text/html'
+       && $FS::CurrentUser::CurrentUser->option('show_db_profile')
+     )
+  {
 
     ## barely worth it, just in case someone tries to use profiling on a
     ## non-RT install



More information about the freeside-commits mailing list