From: lpsolit%gmail.com <> Date: Mon, 6 Oct 2008 21:32:39 +0000 (+0000) Subject: Bug 457480: Bugzilla/Template/Plugin/Hook.pm does not respect disabled flag - Patch... X-Git-Tag: bugzilla-3.2rc2~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38163e9105d98030dc88f84b4385090643ddd99b;p=thirdparty%2Fbugzilla.git Bug 457480: Bugzilla/Template/Plugin/Hook.pm does not respect disabled flag - Patch by Alex Eiser r/a=mkanat --- diff --git a/Bugzilla/Template/Plugin/Hook.pm b/Bugzilla/Template/Plugin/Hook.pm index 05a1fdfd1b..99ece08802 100644 --- a/Bugzilla/Template/Plugin/Hook.pm +++ b/Bugzilla/Template/Plugin/Hook.pm @@ -68,6 +68,7 @@ sub process { my @extensions = glob(bz_locations()->{'extensionsdir'} . "/*"); my @usedlanguages = include_languages({use_languages => Bugzilla->languages}); foreach my $extension (@extensions) { + next if -e "$extension/disabled"; foreach my $language (@usedlanguages) { my $file = $extension.'/template/'.$language.'/'.$extensiontemplate; if (-e $file) {