summaryrefslogtreecommitdiffstats
path: root/search_plugin.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'search_plugin.cgi')
-rw-r--r--search_plugin.cgi12
1 files changed, 11 insertions, 1 deletions
diff --git a/search_plugin.cgi b/search_plugin.cgi
index 5048f7ce6..4dfe8fa9f 100644
--- a/search_plugin.cgi
+++ b/search_plugin.cgi
@@ -20,14 +20,24 @@ use lib qw(. lib);
use Bugzilla;
use Bugzilla::Error;
+use Bugzilla::Constants;
Bugzilla->login();
my $cgi = Bugzilla->cgi;
my $template = Bugzilla->template;
+my $vars = {};
# Return the appropriate HTTP response headers.
print $cgi->header('application/xml');
-$template->process("search/search-plugin.xml.tmpl")
+# Get the contents of favicon.ico
+my $filename = bz_locations()->{'libpath'} . "/images/favicon.ico";
+if (open(IN, $filename)) {
+ local $/;
+ binmode IN;
+ $vars->{'favicon'} = <IN>;
+ close IN;
+}
+$template->process("search/search-plugin.xml.tmpl", $vars)
|| ThrowTemplateError($template->error());