summaryrefslogtreecommitdiffstats
path: root/t/Support
diff options
context:
space:
mode:
authorDavid Lawrence <dlawrence@mozilla.com>2011-09-02 21:50:06 +0200
committerDavid Lawrence <dlawrence@mozilla.com>2011-09-02 21:50:06 +0200
commitd3144ccde7c1d3c432baaf43fe0b79a6c30eb7b0 (patch)
tree8f7fac4d4b98c80a090e74934a754443c127d846 /t/Support
parent9344a458c830ba066b9004c301d0fc6cabc8f229 (diff)
parentbf9156ad5f0a57a467dd46292efb2f0a47ec845e (diff)
downloadbugzilla-d3144ccde7c1d3c432baaf43fe0b79a6c30eb7b0.tar.gz
bugzilla-d3144ccde7c1d3c432baaf43fe0b79a6c30eb7b0.tar.xz
merged with bugzilla/4.2
Diffstat (limited to 't/Support')
-rw-r--r--t/Support/Templates.pm13
1 files changed, 9 insertions, 4 deletions
diff --git a/t/Support/Templates.pm b/t/Support/Templates.pm
index 90b63a726..81dc8cc3f 100644
--- a/t/Support/Templates.pm
+++ b/t/Support/Templates.pm
@@ -29,12 +29,13 @@ use strict;
use lib 't';
use base qw(Exporter);
@Support::Templates::EXPORT =
- qw(@languages @include_paths %include_path @referenced_files
- %actual_files $num_actual_files);
-use vars qw(@languages @include_paths %include_path @referenced_files
- %actual_files $num_actual_files);
+ qw(@languages @include_paths $english_default_include_path
+ %include_path @referenced_files %actual_files $num_actual_files);
+use vars qw(@languages @include_paths $english_default_include_path
+ %include_path @referenced_files %actual_files $num_actual_files);
use Bugzilla;
+use Bugzilla::Constants;
use Bugzilla::Install::Util qw(template_include_path);
use Support::Files;
@@ -50,6 +51,10 @@ use File::Spec;
# All include paths
@include_paths = ();
+# English default include path
+$english_default_include_path =
+ File::Spec->catdir(bz_locations()->{'templatedir'}, 'en', 'default');
+
# Files which are referenced in the cgi files
@referenced_files = ();