]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 532025: Under mod_perl, starting Apache w/ extensions enabled was throwing the...
authormkanat%bugzilla.org <>
Tue, 1 Dec 2009 05:26:12 +0000 (05:26 +0000)
committermkanat%bugzilla.org <>
Tue, 1 Dec 2009 05:26:12 +0000 (05:26 +0000)
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat

mod_perl.pl

index dc737af1317b6ea5908bdc6ca41156b800b6178f..dac8622c80207b239b0fd660eee886a65aea47ac 100755 (executable)
@@ -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);