summaryrefslogtreecommitdiffstats
path: root/Bugzilla.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-01-25 21:04:07 +0100
committerDylan William Hardison <dylan@hardison.net>2017-01-25 21:04:21 +0100
commit6a727b70a9f7d3deb690dffd818d7bb5e9eb7bf5 (patch)
tree28aea39d85e63a901744c6319f6dc06884040daf /Bugzilla.pm
parentec963661fb29c191fec645a956cbddc670cfa3da (diff)
downloadbugzilla-6a727b70a9f7d3deb690dffd818d7bb5e9eb7bf5.tar.gz
bugzilla-6a727b70a9f7d3deb690dffd818d7bb5e9eb7bf5.tar.xz
Bug 1286290 - CSP compliant bug modal
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r--Bugzilla.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm
index f563ba9e3..55e416933 100644
--- a/Bugzilla.pm
+++ b/Bugzilla.pm
@@ -210,10 +210,13 @@ sub init_page {
sub template {
# BMO - use metrics subclass if required
if (Bugzilla->metrics_enabled) {
- return $_[0]->request_cache->{template} ||= Bugzilla::Metrics::Template->create();
+ $_[0]->request_cache->{template} ||= Bugzilla::Metrics::Template->create();
} else {
- return $_[0]->request_cache->{template} ||= Bugzilla::Template->create();
+ $_[0]->request_cache->{template} ||= Bugzilla::Template->create();
}
+ $_[0]->request_cache->{template}->{_is_main} = 1;
+
+ return $_[0]->request_cache->{template};
}
sub template_inner {