summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Hook.pm
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-11-24 12:50:26 +0100
committermkanat%bugzilla.org <>2009-11-24 12:50:26 +0100
commit823e59691fc7224ecca6d95076996fe38383bd64 (patch)
treefe3dd11d569075456ab04fc12cc08a56c1ab749f /Bugzilla/Hook.pm
parentb04aed85ba343e3dcc74ebde6fc72d5ab129b817 (diff)
downloadbugzilla-823e59691fc7224ecca6d95076996fe38383bd64.tar.gz
bugzilla-823e59691fc7224ecca6d95076996fe38383bd64.tar.xz
Bug 430013: Make extensions load their modules like Bugzilla::Extension::Foo::Bar, where Bar.pm is in extensions/Foo/lib/.
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat
Diffstat (limited to 'Bugzilla/Hook.pm')
-rw-r--r--Bugzilla/Hook.pm5
1 files changed, 0 insertions, 5 deletions
diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm
index 26e3a30e5..d29d4cf86 100644
--- a/Bugzilla/Hook.pm
+++ b/Bugzilla/Hook.pm
@@ -22,15 +22,10 @@
package Bugzilla::Hook;
use strict;
-use Bugzilla::Constants;
sub process {
my ($name, $args) = @_;
foreach my $extension (@{ Bugzilla->extensions }) {
- local @INC = @INC;
- my $ext_dir = bz_locations()->{'extensionsdir'};
- my $ext_name = $extension->NAME;
- unshift(@INC, "$ext_dir/$ext_name/lib");
if ($extension->can($name)) {
$extension->$name($args);
}