Commit 0ba623b7 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 897426: Revert the hack in Bugzilla->feature and make it more robust

r/a=glob
parent 4843c411
......@@ -232,12 +232,7 @@ sub feature {
my $success = 1;
foreach my $module (@{ $feature_map->{$feature} }) {
# We can't use a string eval and "use" here (it kills Template-Toolkit,
# see https://rt.cpan.org/Public/Bug/Display.html?id=47929), so we have
# to do a block eval.
$module =~ s{::}{/}g;
$module .= ".pm";
eval { require $module; 1; } or $success = 0;
eval "require $module" or $success = 0;
}
$cache->{feature}->{$feature} = $success;
return $success;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment