projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
later versions are okay too
[freeside.git]
/
httemplate
/
autohandler
diff --git
a/httemplate/autohandler
b/httemplate/autohandler
index
e6e50d5
..
a3f7eb0
100644
(file)
--- a/
httemplate/autohandler
+++ b/
httemplate/autohandler
@@
-1,20
+1,18
@@
% $m->call_next;
% $m->call_next;
-
<%init>
dbh->{'private_profile'} = {} if UNIVERSAL::can(dbh, 'sprintProfile');
</%init>
<%init>
dbh->{'private_profile'} = {} if UNIVERSAL::can(dbh, 'sprintProfile');
</%init>
-
<%filter>
my $profile = '';
if ( UNIVERSAL::can(dbh, 'sprintProfile') ) {
<%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()).
+ $profile = '<PRE>'. encode_entities(dbh->sprintProfile()).
#"\n\n". &sprintAutoProfile(). '</PRE>';
"\n\n". '</PRE>';
#"\n\n". &sprintAutoProfile(). '</PRE>';
"\n\n". '</PRE>';
- #endif
+ }
dbh->{'private_profile'} = {};
}
dbh->{'private_profile'} = {};
}