com web/php: Restore the old site's default search, which is to try the quickref first.: include/header.inc
| From: | Adam Harvey | Date: | Thu, 21 Nov 2013 01:08:42 +0000 |
| Subject: | com web/php: Restore the old site's default search, which is to try the quickref first.: include/header.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-17112@lists.php.net to get a copy of this message | ||
Commit: 1ced2ee7a94d99f20bbfe518b7cc8261c4ca75be
Author: Adam Harvey <aharvey@php.net> Wed, 20 Nov 2013 15:51:36 -0800
Parents: 0d71940a8a9e402c049f42958ebeb46c8b7d79f2
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=1ced2ee7a94d99f20bbfe518b7cc8261c4ca75be
Log:
Restore the old site's default search, which is to try the quickref first.
This is actually an improvement on the old site, really, because the previous
case of "all php.net sites" is handled by the last item in the dropdown. My
inclination for now is to not worry about the other search modes that were
supported in the old site's search bar: many of them are for subsites that have
their own search, such as bugs.php.net and pecl.php.net, and the others have
tabs on results..php anyway.
Changed paths:
M include/header.inc
Diff:
diff --git a/include/header.inc b/include/header.inc
index 3c28a6d..cba0198 100755
--- a/include/header.inc
+++ b/include/header.inc
@@ -86,6 +86,7 @@ if (isset($shortname) && $shortname) {
<li class="<?php echo $curr == "help" ? "active" :
""?>"><a href="/support">Help</a></li>
</ul>
<form class="navbar-search span3" id="topsearch"
action="/search.php">
+ <input type="hidden" name="show" value="quickref">
<input type="search" name="pattern"
class="search-query" placeholder="Search"/>
</form>
</div>