Commit 9500ea01 authored by Max Kanat-Alexander's avatar Max Kanat-Alexander

Bug 562551: Allow template-only extensions to work

r=mkanat, a=mkanat (module owner)
parent 62efd548
......@@ -418,6 +418,18 @@ sub _template_base_directories {
}
}
# Extensions may also contain *only* templates, in which case they
# won't show up in extension_requirement_packages.
foreach my $path (_extension_paths()) {
next if !-d $path;
if (!-e "$path/Extension.pm" and !-e "$path/Config.pm"
and -d "$path/template")
{
push(@template_dirs, "$path/template");
}
}
push(@template_dirs, bz_locations()->{'templatedir'});
return \@template_dirs;
}
......
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