database profiling bs
authorivan <ivan>
Fri, 6 Jun 2003 04:42:04 +0000 (04:42 +0000)
committerivan <ivan>
Fri, 6 Jun 2003 04:42:04 +0000 (04:42 +0000)
i should just switch to mason

htetc/global.asa

index 5fd8995..5553642 100644 (file)
@@ -126,7 +126,9 @@ sub Script_OnFlush {
   }
 }
 
-if ( defined(@DBIx::Profile::ISA) && DBIx::Profile::db->can('sprintProfile') ) {
+#if ( defined(@DBIx::Profile::ISA) && DBIx::Profile::db->can('sprintProfile') ) {
+#if ( defined(@DBIx::Profile::ISA) && UNIVERSAL::can('DBIx::Profile::db', 'sprintProfile') ) {
+if ( defined(@DBIx::Profile::ISA) ) {
 
   #warn "enabling profiling redirects";
   *CGI::redirect = sub {