diff options
author | Kohei Yoshino <kohei.yoshino@gmail.com> | 2018-10-01 17:43:11 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-10-01 17:43:11 +0200 |
commit | 2fde460927e475d9f55cefde4eebf53e643a4edc (patch) | |
tree | 4d335795cd7bbe05e4cf020505ec4cfe9e010469 /buglist.cgi | |
parent | 0cfd7cbbd50ac464360c876551cb592ea1a6bf3a (diff) | |
download | bugzilla-2fde460927e475d9f55cefde4eebf53e643a4edc.tar.gz bugzilla-2fde460927e475d9f55cefde4eebf53e643a4edc.tar.xz |
Bug 1494645 - Allow customizing HTML <title> of search results
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-x | buglist.cgi | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/buglist.cgi b/buglist.cgi index 019bf0d4e..8de38599f 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -590,9 +590,6 @@ if ($format->{'extension'} eq 'ics') { } if ($format->{'extension'} eq 'atom') { - # The title of the Atom feed will be the same one as for the bug list. - $vars->{'title'} = $cgi->param('title'); - # This is the list of fields that are needed by the Atom filter. my @required_atom_columns = ( 'short_desc', @@ -1060,6 +1057,10 @@ $vars->{'defaultsavename'} = $cgi->param('query_based_on'); # string in the text field. $vars->{'quicksearch'} = $searchstring; +# Allow to custimize the title of HTML page and Atom feed. Also allow to pass +# the title from HTML page to Atom feed through a link. +$vars->{'title'} = $cgi->param('title'); + ################################################################################ # HTTP Header Generation ################################################################################ @@ -1103,4 +1104,4 @@ $cgi->close_standby_message($contenttype, $disposition, $disp_prefix, $format->{ # Generate and return the UI (HTML page) from the appropriate template. $template->process($format->{'template'}, $vars) - || ThrowTemplateError($template->error());
\ No newline at end of file + || ThrowTemplateError($template->error()); |