From: mkanat%bugzilla.org <> Date: Tue, 1 Dec 2009 05:26:12 +0000 (+0000) Subject: Bug 532025: Under mod_perl, starting Apache w/ extensions enabled was throwing the... X-Git-Tag: bugzilla-3.5.3~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7508fffc4bd51b5c34620f9a9d04bf7831a0d2c;p=thirdparty%2Fbugzilla.git Bug 532025: Under mod_perl, starting Apache w/ extensions enabled was throwing the "not a valid name" error. Patch by Max Kanat-Alexander (module owner) a=mkanat --- diff --git a/mod_perl.pl b/mod_perl.pl index dc737af131..dac8622c80 100755 --- a/mod_perl.pl +++ b/mod_perl.pl @@ -73,6 +73,9 @@ EOT $server->add_config([split("\n", $conf)]); +# Pre-load all extensions +$Bugzilla::extension_packages = Bugzilla::Extension->load_all(); + # Have ModPerl::RegistryLoader pre-compile all CGI scripts. my $rl = new ModPerl::RegistryLoader(); # If we try to do this in "new" it fails because it looks for a @@ -88,9 +91,6 @@ foreach my $file (glob "$cgi_path/*.cgi") { $rl->handler($file, $file); } -# And now pre-load all extensions -$Bugzilla::extension_packages = Bugzilla::Extension->load_all(); - package Bugzilla::ModPerl::ResponseHandler; use strict; use base qw(ModPerl::Registry);