From 5fc80f94271780b6ff6d1dbba554df35e803ac51 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Tue, 24 Nov 2009 06:09:41 +0000 Subject: Bug 430014: Re-write the code hooks system so that it uses modules instead of individual .pl files Patch by Max Kanat-Alexander (module owner) a=mkanat --- mod_perl.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mod_perl.pl') diff --git a/mod_perl.pl b/mod_perl.pl index 8ca691f9c..dc737af13 100755 --- a/mod_perl.pl +++ b/mod_perl.pl @@ -20,8 +20,8 @@ package Bugzilla::ModPerl; use strict; # If you have an Apache2::Status handler in your Apache configuration, -# you need to load Apache2::Status *here*, so that Apache::DBI can -# report information to Apache2::Status. +# you need to load Apache2::Status *here*, so that any later-loaded modules +# can report information to Apache2::Status. #use Apache2::Status (); # We don't want to import anything into the global scope during @@ -41,6 +41,7 @@ Template::Config->preload(); use Bugzilla (); use Bugzilla::Constants (); use Bugzilla::CGI (); +use Bugzilla::Extension (); use Bugzilla::Install::Requirements (); use Bugzilla::Mailer (); use Bugzilla::Template (); @@ -87,6 +88,8 @@ 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; -- cgit v1.2.3-24-g4f1b