aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla/Template
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2006-02-28 23:41:04 +0000
committerjocuri%softhome.net <>2006-02-28 23:41:04 +0000
commit4cde47cdf30a0f3f97c782e8b13cde0149851143 (patch)
treeb7d3903b838aa9d9ea20df6eb144ea6c93329ed9 /Bugzilla/Template
parent692dcb72ed5ed25d2320a962ab28008a797c5b08 (diff)
downloadbugs-4cde47cdf30a0f3f97c782e8b13cde0149851143.tar
bugs-4cde47cdf30a0f3f97c782e8b13cde0149851143.tar.gz
bugs-4cde47cdf30a0f3f97c782e8b13cde0149851143.tar.bz2
bugs-4cde47cdf30a0f3f97c782e8b13cde0149851143.tar.xz
bugs-4cde47cdf30a0f3f97c782e8b13cde0149851143.zip
Fix ThrowCodeError calls by giving them an unique ID (tree fix).
Diffstat (limited to 'Bugzilla/Template')
-rw-r--r--Bugzilla/Template/Plugin/Hook.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Template/Plugin/Hook.pm b/Bugzilla/Template/Plugin/Hook.pm
index 2f94c1dbe..7ff707fc1 100644
--- a/Bugzilla/Template/Plugin/Hook.pm
+++ b/Bugzilla/Template/Plugin/Hook.pm
@@ -52,7 +52,7 @@ sub process {
# sanity check:
if (!$template =~ /[\w\.\/\-_\\]+/) {
- ThrowCodeError("Template with invalid file name found in hook call: $template");
+ ThrowCodeError('template_invalid', { name => $template});
}
# also get extension hook files that live in extensions/: