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>
This commit is contained in:
parent
0d5029ec5b
commit
e0d76bd88d
1 changed files with 12 additions and 13 deletions
|
@ -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 a new issue