diff options
author | bbaetz%student.usyd.edu.au <> | 2002-11-28 19:49:38 +0100 |
---|---|---|
committer | bbaetz%student.usyd.edu.au <> | 2002-11-28 19:49:38 +0100 |
commit | e47e36a6821a4f954f5d03643cdb5be988568798 (patch) | |
tree | 9c91c6b9f795bed422c040c01d6039fac80db3fa /globals.pl | |
parent | 0fcc20760ab4c49ec7e3b93f9025a9b0b8d2046b (diff) | |
download | bugzilla-e47e36a6821a4f954f5d03643cdb5be988568798.tar.gz bugzilla-e47e36a6821a4f954f5d03643cdb5be988568798.tar.xz |
Bug 171493 - make show_bug use Bug.pm and remove bug_form.pl
r=justdave, joel
a=justdave
Diffstat (limited to 'globals.pl')
-rw-r--r-- | globals.pl | 19 |
1 files changed, 14 insertions, 5 deletions
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 , |