projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix "multiple states" links, RT#13922
[freeside.git]
/
htetc
/
handler.pl
diff --git
a/htetc/handler.pl
b/htetc/handler.pl
index
952d620
..
eb9e67e
100644
(file)
--- a/
htetc/handler.pl
+++ b/
htetc/handler.pl
@@
-57,16
+57,17
@@
sub handler
if ( $r->filename =~ /\/rt\// ) { #RT
if ( $r->filename =~ /\/rt\// ) { #RT
- $ah->interp($rt_interp);
+ # We don't need to handle non-text, non-xml items
+ return -1 if defined( $r->content_type )
+ && $r->content_type !~ m!(^text/|\bxml\b)!io;
+
local $SIG{__WARN__};
local $SIG{__DIE__};
RT::Init();
local $SIG{__WARN__};
local $SIG{__DIE__};
RT::Init();
- # We don't need to handle non-text, non-xml items
- return -1 if defined( $r->content_type )
- && $r->content_type !~ m!(^text/|\bxml\b)!io;
+ $ah->interp($rt_interp);
} else {
} else {
@@
-76,8
+77,11
@@
sub handler
RT::Init() if $RT::VERSION; #for lack of something else
#we don't want the RT error handlers under FS
RT::Init() if $RT::VERSION; #for lack of something else
#we don't want the RT error handlers under FS
- undef $SIG{__WARN__} if defined($SIG{__WARN__});
- undef $SIG{__DIE__} if defined($SIG{__DIE__} );
+ {
+ no warnings 'uninitialized';
+ undef($SIG{__WARN__}) if defined($SIG{__WARN__});
+ undef($SIG{__DIE__}) if defined($SIG{__DIE__} );
+ }
$ah->interp($fs_interp);
$ah->interp($fs_interp);