Bug 5611 INIT block causes failure with mod perl
Per module INIT Blocks are not run in mod_perl so their
variables are not visible. A lexical var is adequate
for this purpose
Signed-off-by: Colin Campbell <colin.campbell@ptfs-europe.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit e0d76bd88d)
Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
parent
8beda6cfca
commit
a5ea4eb39f
|
|
@ -30,19 +30,18 @@ BEGIN {
|
|||
# @ISA = qw(HTML::Scrubber);
|
||||
}
|
||||
|
||||
INIT {
|
||||
%scrubbertypes = (
|
||||
default => {}, # place holder, default settings are below as fallbacks in call to constructor
|
||||
tag => {}, # uses defaults
|
||||
comment => {
|
||||
allow => [qw( br b i em big small strong )],
|
||||
},
|
||||
staff => {
|
||||
default => [ 1 =>{'*'=>1} ],
|
||||
comment => 1,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
my %scrubbertypes = (
|
||||
default => {}, # place holder, default settings are below as fallbacks in call to constructor
|
||||
tag => {}, # uses defaults
|
||||
comment => {
|
||||
allow => [qw( br b i em big small strong )],
|
||||
},
|
||||
staff => {
|
||||
default => [ 1 =>{'*'=>1} ],
|
||||
comment => 1,
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
sub new {
|
||||
|
|
|
|||
Loading…
Reference in New Issue