From a5c9551ef185fe6dfe5ea4ea18f7150eb9d567f5 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" Date: Thu, 6 Aug 2009 15:20:30 +0000 Subject: [PATCH] Bug 508199: A hook for page.cgi Patch by Max Kanat-Alexander r=dkl, a=mkanat git-svn-id: svn://10.0.0.236/branches/BUGZILLA-3_4-BRANCH@257962 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/Bugzilla/Hook.pm | 27 +++++++++++++++ .../example/code/page-before_template.pl | 33 +++++++++++++++++++ .../en/default/pages/example.html.tmpl | 32 ++++++++++++++++++ mozilla/webtools/bugzilla/page.cgi | 7 +++- 4 files changed, 98 insertions(+), 1 deletion(-) create mode 100644 mozilla/webtools/bugzilla/extensions/example/code/page-before_template.pl create mode 100644 mozilla/webtools/bugzilla/extensions/example/template/en/default/pages/example.html.tmpl diff --git a/mozilla/webtools/bugzilla/Bugzilla/Hook.pm b/mozilla/webtools/bugzilla/Bugzilla/Hook.pm index 5bc2e7716ef..de35f93b536 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Hook.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/Hook.pm @@ -478,6 +478,33 @@ Params: =back +=head2 page-before_template + +This is a simple way to add your own pages to Bugzilla. This hooks C, +which loads templates from F