diff options
author | gerv%gerv.net <> | 2002-05-08 06:28:39 +0200 |
---|---|---|
committer | gerv%gerv.net <> | 2002-05-08 06:28:39 +0200 |
commit | d756467055959872b1a443d2c60417135b0d05e9 (patch) | |
tree | d1f3401ac634e7cc5407d6340f068aa44e0470e9 /globals.pl | |
parent | 4afae456014ff01ee01e11279fc5a9b5f4f7b5bf (diff) | |
download | bugzilla-d756467055959872b1a443d2c60417135b0d05e9.tar.gz bugzilla-d756467055959872b1a443d2c60417135b0d05e9.tar.xz |
Bug 140435 - Templatise GetCommandMenu. Patch by gerv; r=bbaetz, justdave.
Diffstat (limited to 'globals.pl')
-rw-r--r-- | globals.pl | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/globals.pl b/globals.pl index f6e651e3c..d04133d10 100644 --- a/globals.pl +++ b/globals.pl @@ -486,7 +486,6 @@ sub GenerateVersionTable { } } - my $cols = LearnAboutColumns("bugs"); @::log_columns = @{$cols->{"-list-"}}; @@ -1574,6 +1573,15 @@ $::template ||= Template->new( # filter should be used for a full URL that may have # characters that need encoding. url_quote => \&url_quote , + + # Returns the text with spaces converted to non-breaking space + # HTML entities. + no_break => sub + { + my ($var) = @_; + $var =~ s/ /\ /g; + return $var; + } , } , } ) || DisplayError("Template creation failed: " . Template->error()) @@ -1756,6 +1764,8 @@ $::vars = # User Agent - useful for detecting in templates 'user_agent' => $ENV{'HTTP_USER_AGENT'} , + + 'use_votes' => $::anyvotesallowed, }; 1; |