From e47e36a6821a4f954f5d03643cdb5be988568798 Mon Sep 17 00:00:00 2001 From: "bbaetz%student.usyd.edu.au" <> Date: Thu, 28 Nov 2002 18:49:38 +0000 Subject: Bug 171493 - make show_bug use Bug.pm and remove bug_form.pl r=justdave, joel a=justdave --- globals.pl | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'globals.pl') diff --git a/globals.pl b/globals.pl index 547fd1b95..79c2f92b4 100644 --- a/globals.pl +++ b/globals.pl @@ -1781,8 +1781,20 @@ $::template ||= Template->new( # characters NOT in the regex set: [a-zA-Z0-9_\-.]. The 'uri' # filter should be used for a full URL that may have # characters that need encoding. - url_quote => \&Bugzilla::Util::url_quote, - + url_quote => \&Bugzilla::Util::url_quote , + + quoteUrls => \"eUrls , + + bug_link => [ sub { + my ($context, $bug) = @_; + return sub { + my $text = shift; + return GetBugLink($text, $bug); + }; + }, + 1 + ], + # In CSV, quotes are doubled, and we enclose the whole value in quotes csv => sub { @@ -1892,9 +1904,6 @@ $::vars = # Generic linear search function 'lsearch' => \&Bugzilla::Util::lsearch , - # quoteUrls - autolinkifies text - 'quoteUrls' => \"eUrls , - # UserInGroup - you probably want to cache this 'UserInGroup' => \&UserInGroup , -- cgit v1.2.3-24-g4f1b