summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authormyk%mozilla.org <>2004-01-12 02:12:13 +0100
committermyk%mozilla.org <>2004-01-12 02:12:13 +0100
commit637b35d05add84f71adcf7d0d3cb060b1c3e7349 (patch)
tree68ac02c31b34b0883a71c20a473a88946302be09 /t
parente4bdfbbf265b93bbb9efa5d987ddb1d9167df28d (diff)
downloadbugzilla-637b35d05add84f71adcf7d0d3cb060b1c3e7349.tar.gz
bugzilla-637b35d05add84f71adcf7d0d3cb060b1c3e7349.tar.xz
Fix for bug 229658: Implements a mechanism for extensions to hook into standard Bugzilla templates so they can extend the Bugzilla UI without having to modify the standard templates themselves, making it easier to develop and use Bugzilla extensions.
r=bbaetz, gerv a=myk
Diffstat (limited to 't')
-rw-r--r--t/004template.t4
-rw-r--r--t/Support/Templates.pm2
2 files changed, 6 insertions, 0 deletions
diff --git a/t/004template.t b/t/004template.t
index 136a74f06..3b41282cc 100644
--- a/t/004template.t
+++ b/t/004template.t
@@ -86,6 +86,10 @@ foreach my $include_path (@include_paths) {
# Need to define filters used in the codebase, they don't
# actually have to function in this test, just be defined.
# See globals.pl for the actual codebase definitions.
+
+ # Initialize templates (f.e. by loading plugins like Hook).
+ PRE_PROCESS => "global/initialize.none.tmpl",
+
FILTERS =>
{
html_linebreak => sub { return $_; },
diff --git a/t/Support/Templates.pm b/t/Support/Templates.pm
index e90565392..440358015 100644
--- a/t/Support/Templates.pm
+++ b/t/Support/Templates.pm
@@ -69,6 +69,8 @@ $num_actual_files = 0;
my $path = File::Spec->catdir('template', $langdir, 'custom');
my @dirs = ();
push(@dirs, $path) if(-d $path);
+ $path = File::Spec->catdir('template', $langdir, 'extension');
+ push(@dirs, $path) if(-d $path);
$path = File::Spec->catdir('template', $langdir, 'default');
push(@dirs, $path) if(-d $path);