- fix Mason profiling to pass-through images (for graph/)
[freeside.git] / htetc / global.asa
index 21e112e..5b0ac49 100644 (file)
@@ -73,7 +73,7 @@ sub Script_OnStart {
   $p = popurl(2);
   #print $cgi->header( '-expires' => 'now' );
   #dbh->{'private_profile'} = {} if dbh->can('sprintProfile');
-  dbh->{'private_profile'} = {} if UNIVERSAL::can(dbh, 'sprintProfile') );
+  dbh->{'private_profile'} = {} if UNIVERSAL::can(dbh, 'sprintProfile');
 
   #really should check for FS::Profiler or something
     # Devel::AutoProfiler _our_ VERSION?  thanks a fucking lot
@@ -137,8 +137,8 @@ if ( defined(@DBIx::Profile::ISA) ) {
     my( $self, $location) = @_;
     my $page =
       $cgi->header.
-      qq!<HTML><BODY>Redirect to <A HREF="$location">$location</A><BR><BR>!.
-      '<PRE>'.
+      qq!<HTML><BODY>Redirect to <A HREF="$location">$location</A>!.
+      '<BR><BR><PRE>'.
         ( UNIVERSAL::can(dbh, 'sprintProfile')
             ? encode_entities(dbh->sprintProfile())
             : 'DBIx::Profile missing sprintProfile method;'.
@@ -191,5 +191,9 @@ sub sprintAutoProfile {
 
 }
 
+sub include {
+  $Response->Include(@_);
+}
+
 1;