summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-03-25 16:20:22 +0100
committerByron Jones <bjones@mozilla.com>2013-03-25 16:20:22 +0100
commitd01c45b93c62802f7f477a70deb21c9d9432675e (patch)
tree8f3a7a511cad8c2396e1300b1dbae504c6da97d0
parent64a789e7629fa8b20f68267245d7fe79dd14d41a (diff)
downloadbugzilla-d01c45b93c62802f7f477a70deb21c9d9432675e.tar.gz
bugzilla-d01c45b93c62802f7f477a70deb21c9d9432675e.tar.xz
Bug 854412: search plugin does not use bmo favicon but the generic dino head
-rw-r--r--extensions/BMO/template/en/default/search/search-plugin.xml.tmpl21
-rwxr-xr-xsearch_plugin.cgi8
2 files changed, 7 insertions, 22 deletions
diff --git a/extensions/BMO/template/en/default/search/search-plugin.xml.tmpl b/extensions/BMO/template/en/default/search/search-plugin.xml.tmpl
index 5d187bf40..0c52c1a58 100644
--- a/extensions/BMO/template/en/default/search/search-plugin.xml.tmpl
+++ b/extensions/BMO/template/en/default/search/search-plugin.xml.tmpl
@@ -1,24 +1,17 @@
-[%# The contents of this file are subject to the Mozilla Public
- # License Version 1.1 (the "License"); you may not use this file
- # except in compliance with the License. You may obtain a copy of
- # the License at http://www.mozilla.org/MPL/
- #
- # Software distributed under the License is distributed on an "AS
- # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
- # implied. See the License for the specific language governing
- # rights and limitations under the License.
- #
- # The Original Code is the Bugzilla Bug Tracking System.
- #
- # Contributor(s): Frédéric Buclin <LpSolit@gmail.com>
+[%# This Source Code Form is subject to the terms of the Mozilla Public
+ # License, v. 2.0. If a copy of the MPL was not distributed with this
+ # file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
+ # This Source Code Form is "Incompatible With Secondary Licenses", as
+ # defined by the Mozilla Public License, v. 2.0.
#%]
+
[% PROCESS global/variables.none.tmpl %]
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>[% terms.BugzillaTitle %]</ShortName>
<Description>[% terms.BugzillaTitle %] Quick Search</Description>
<InputEncoding>UTF-8</InputEncoding>
-<Image width="16" height="16">data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8%2F9hAAAABGdBTUEAAK%2FINwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHWSURBVHjaYvz%2F%2Fz8DJQAggJiQOe%2Ffv2fv7Oz8rays%2FN%2BVkfG%2FiYnJfyD%2F1%2BrVq7ffu3dPFpsBAAHEAHIBCJ85c8bN2Nj4vwsDw%2F8zQLwKiO8CcRoQu0DxqlWrdsHUwzBAAIGJmTNnPgYa9j8UqhFElwPxf2MIDeIrKSn9FwSJoRkAEEAM0DD4DzMAyPi%2FG%2BQKY4hh5WAXGf8PDQ0FGwJ22d27CjADAAIIrLmjo%2BMXA9R2kAHvGBA2wwx6B8W7od6CeQcggKCmCEL8bgwxYCbUIGTDVkHDBia%2BCuotgACCueD3TDQN75D4xmAvCoK9ARMHBzAw0AECiBHkAlC0Mdy7x9ABNA3obAZXIAa6iKEcGlMVQHwWyjYuL2d4v2cPg8vZswx7gHyAAAK7AOif7SAbOqCmn4Ha3AHFsIDtgPq%2FvLz8P4MSkJ2W9h8ggBjevXvHDo4FQUQg%2FkdypqCg4H8lUIACnQ%2FSOBMYI8bAsAJFPcj1AAEEjwVQqLpAbXmH5BJjqI0gi9DTAAgDBBCcAVLkgmQ7yKCZxpCQxqUZhAECCJ4XgMl493ug21ZD%2BaDAXH0WLM4A9MZPXJkJIIAwTAR5pQMalaCABQUULttBGCCAGCnNzgABBgAMJ5THwGvJLAAAAABJRU5ErkJggg%3D%3D</Image>
+<Image height="16" width="16" type="image/vnd.microsoft.icon">https://bugzilla.mozilla.org/extensions/BMO/web/images/favicon.ico</Image>
<Url type="text/html" method="GET" template="[% urlbase FILTER xml %]buglist.cgi?quicksearch={searchTerms}"/>
</OpenSearchDescription>
diff --git a/search_plugin.cgi b/search_plugin.cgi
index 4dfe8fa9f..b50467911 100755
--- a/search_plugin.cgi
+++ b/search_plugin.cgi
@@ -31,13 +31,5 @@ my $vars = {};
# Return the appropriate HTTP response headers.
print $cgi->header('application/xml');
-# 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());