From d01c45b93c62802f7f477a70deb21c9d9432675e Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 25 Mar 2013 23:20:22 +0800 Subject: Bug 854412: search plugin does not use bmo favicon but the generic dino head --- .../en/default/search/search-plugin.xml.tmpl | 21 +++++++-------------- search_plugin.cgi | 8 -------- 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 +[%# 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 %] [% terms.BugzillaTitle %] [% terms.BugzillaTitle %] Quick Search UTF-8 -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 +https://bugzilla.mozilla.org/extensions/BMO/web/images/favicon.ico 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'} = ; - close IN; -} $template->process("search/search-plugin.xml.tmpl", $vars) || ThrowTemplateError($template->error()); -- cgit v1.2.3-24-g4f1b