summaryrefslogtreecommitdiff
path: root/httemplate/autohandler
diff options
context:
space:
mode:
authorivan <ivan>2003-08-08 02:02:41 +0000
committerivan <ivan>2003-08-08 02:02:41 +0000
commitef7bb336cc67f127fb1d77532ad3da1369c0ae36 (patch)
treec2497e7638806744c54097d2ecd017d4423dfd2e /httemplate/autohandler
parent69ecd0e15d3de36b56ad133d5ae57dcddc53c63e (diff)
- fix Mason profiling to pass-through images (for graph/)
- fix graph/money-time.cgi use of $m interfering with Mason - fix graph/money-time-graph.cgi to set content-type in a Mason/ASP-independant fashion - (beginning of) includes! - (beginning of) moving SQL search to including generic elements/search.html - fix global.asa typo - fix masonize to not prepend an extraneous blank line (breaking graph/money-time-graph.cgi)
Diffstat (limited to 'httemplate/autohandler')
-rw-r--r--httemplate/autohandler6
1 files changed, 2 insertions, 4 deletions
diff --git a/httemplate/autohandler b/httemplate/autohandler
index e6e50d5bd..2bd3adffd 100644
--- a/httemplate/autohandler
+++ b/httemplate/autohandler
@@ -1,20 +1,18 @@
% $m->call_next;
-
<%init>
dbh->{'private_profile'} = {} if UNIVERSAL::can(dbh, 'sprintProfile');
</%init>
-
<%filter>
my $profile = '';
if ( UNIVERSAL::can(dbh, 'sprintProfile') ) {
- #if contenttype is text/html!! **FIXME**
+ if ( lc($r->content_type) eq 'text/html' ) {
$profile = '<PRE>'. ("\n"x4096). encode_entities(dbh->sprintProfile()).
#"\n\n". &sprintAutoProfile(). '</PRE>';
"\n\n". '</PRE>';
- #endif
+ }
dbh->{'private_profile'} = {};
}