]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 289618: reference globals.pl's quoteUrls function for changing bug term - Patch...
authorlpsolit%gmail.com <>
Wed, 13 Apr 2005 01:23:56 +0000 (01:23 +0000)
committerlpsolit%gmail.com <>
Wed, 13 Apr 2005 01:23:56 +0000 (01:23 +0000)
template/en/default/global/variables.none.tmpl

index c75f25988f4e30ecd0149a16f647162dac69880c..76ec1bec6ded7185586b64e7d7d70bd2f634975f 100644 (file)
   # Remember to PROCESS rather than INCLUDE this template. 
   #%]
 
+[%# Note on changing terms:
+  # Changing this will not affect "linkification" of your new terms.
+  # This means if you change "bug" to "problem", then if you have
+  # "problem 3" in a comment, it won't become a clickable URL.
+  # To have that feature, you must edit the quoteUrls function in
+  # globals.pl (in the base Bugzilla directory).
+  # Change the line:
+  # my $bug_re = qr/bug\s*\#?\s*(\d+)/i;
+  # to something like:
+  # my $bug_re = qr/(?:bug|problem)\s*\#?\s*(\d+)/i;
+  # (here "problem" was used instead of bug - substitute as needed!).
+  #%]
+
 [% terms = {
   "bug" => "bug",
   "Bug" => "Bug",